Skip to content

Commit

Permalink
chore: Remove unused _find_blinksticks function
Browse files Browse the repository at this point in the history
  • Loading branch information
robberwick committed Nov 30, 2024
1 parent 5dde1b5 commit 80bf755
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/blinkstick/blinkstick.py
Original file line number Diff line number Diff line change
Expand Up @@ -1380,24 +1380,6 @@ def send_data(self, channel: int) -> None:
super(BlinkStickProMatrix, self).send_data(channel)


def _find_blicksticks(find_all: bool = True) -> list[BlinkStick] | None:
if sys.platform == "win32":
devices = hid.HidDeviceFilter(
vendor_id=VENDOR_ID, product_id=PRODUCT_ID
).get_devices()
if find_all:
return devices
elif len(devices) > 0:
return devices[0]
else:
return None

else:
return usb.core.find(
find_all=find_all, idVendor=VENDOR_ID, idProduct=PRODUCT_ID
)


def find_all() -> list[BlinkStick]:
"""
Find all attached BlinkStick devices.
Expand Down

0 comments on commit 80bf755

Please sign in to comment.