Skip to content

Commit

Permalink
Merge pull request #111 from robberwick/unused-find-blinksticks
Browse files Browse the repository at this point in the history
Remove Unused find blinksticks method
  • Loading branch information
robberwick authored Nov 30, 2024
2 parents 5dde1b5 + 80bf755 commit 9515143
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 9515143

Please sign in to comment.