diff --git a/lib/hidapi/hidconsole.py b/lib/hidapi/hidconsole.py index 36e89bf1..4d4808f5 100644 --- a/lib/hidapi/hidconsole.py +++ b/lib/hidapi/hidconsole.py @@ -38,10 +38,6 @@ def strhex(d): return hexlify(d).decode("ascii").upper() -# -# -# - print_lock = Lock() @@ -164,11 +160,6 @@ def _open(args): return handle -# -# -# - - def _parse_arguments(): arg_parser = argparse.ArgumentParser() arg_parser.add_argument("--history", help="history file (default ~/.hidconsole-history)") diff --git a/lib/logitech_receiver/base.py b/lib/logitech_receiver/base.py index c8ae1799..8e3bb7c7 100644 --- a/lib/logitech_receiver/base.py +++ b/lib/logitech_receiver/base.py @@ -83,10 +83,6 @@ def product_information(usb_id: int | str) -> dict: return {} -# -# -# - _SHORT_MESSAGE_SIZE = 7 _LONG_MESSAGE_SIZE = 20 _MEDIUM_MESSAGE_SIZE = 15 @@ -112,10 +108,6 @@ _DEVICE_REQUEST_TIMEOUT = DEFAULT_TIMEOUT # when pinging, be extra patient (no longer) _PING_TIMEOUT = DEFAULT_TIMEOUT -# -# -# - def match(record, bus_id, vendor_id, product_id): return ( @@ -163,11 +155,6 @@ def notify_on_receivers_glib(callback): return hidapi.monitor_glib(callback, filter) -# -# -# - - def open_path(path): """Checks if the given Linux device path points to the right UR device. @@ -311,11 +298,6 @@ def _read(handle, timeout): return report_id, devnumber, data[2:] -# -# -# - - def _skip_incoming(handle, ihandle, notifications_hook): """Read anything already in the input buffer. diff --git a/lib/logitech_receiver/hidpp20_constants.py b/lib/logitech_receiver/hidpp20_constants.py index 69fc8b95..864e6e2a 100644 --- a/lib/logitech_receiver/hidpp20_constants.py +++ b/lib/logitech_receiver/hidpp20_constants.py @@ -213,7 +213,7 @@ GESTURE = NamedInts( TopEdgeSwipe1Finger=63, LeftEdgeSwipe1Finger2=64, # task HorzScrollNoRepeatSet RightEdgeSwipe1Finger2=65, # task 122 ?? - BottomEdgeSwipe1Finger2=66, # + BottomEdgeSwipe1Finger2=66, TopEdgeSwipe1Finger2=67, # task 121 ?? LeftEdgeSwipe2Finger=70, RightEdgeSwipe2Finger=71, diff --git a/lib/logitech_receiver/settings_templates.py b/lib/logitech_receiver/settings_templates.py index c9903fb2..7730387c 100644 --- a/lib/logitech_receiver/settings_templates.py +++ b/lib/logitech_receiver/settings_templates.py @@ -1775,10 +1775,6 @@ SETTINGS = [ ADCPower, ] -# -# -# - def check_feature(device, sclass): if sclass.feature not in device.features: diff --git a/lib/solaar/cli/__init__.py b/lib/solaar/cli/__init__.py index bd4a158a..58215ed3 100644 --- a/lib/solaar/cli/__init__.py +++ b/lib/solaar/cli/__init__.py @@ -31,10 +31,6 @@ from solaar import NAME logger = logging.getLogger(__name__) -# -# -# - def _create_parser(): parser = _argparse.ArgumentParser( diff --git a/lib/solaar/gtk.py b/lib/solaar/gtk.py index 86a947b3..d9862d62 100755 --- a/lib/solaar/gtk.py +++ b/lib/solaar/gtk.py @@ -41,10 +41,6 @@ from solaar import __version__ logger = logging.getLogger(__name__) -# -# -# - def _require(module, os_package, gi=None, gi_package=None, gi_version=None): try: diff --git a/lib/solaar/tasks.py b/lib/solaar/tasks.py index 3a2af046..4de96e49 100644 --- a/lib/solaar/tasks.py +++ b/lib/solaar/tasks.py @@ -27,10 +27,6 @@ try: except ImportError: from queue import Queue as _Queue -# -# -# - class TaskRunner(_Thread): def __init__(self, name): diff --git a/lib/solaar/ui/about.py b/lib/solaar/ui/about.py index e10c7f94..f248d421 100644 --- a/lib/solaar/ui/about.py +++ b/lib/solaar/ui/about.py @@ -23,10 +23,6 @@ from solaar import NAME from solaar import __version__ from solaar.i18n import _ -# -# -# - _dialog = None diff --git a/lib/solaar/ui/common.py b/lib/solaar/ui/common.py index 95318e0d..83e42f8e 100644 --- a/lib/solaar/ui/common.py +++ b/lib/solaar/ui/common.py @@ -69,10 +69,6 @@ def error_dialog(reason, object): GLib.idle_add(_error_dialog, reason, object) -# -# -# - _task_runner = None diff --git a/lib/solaar/ui/config_panel.py b/lib/solaar/ui/config_panel.py index ae2b9867..7363edc1 100644 --- a/lib/solaar/ui/config_panel.py +++ b/lib/solaar/ui/config_panel.py @@ -598,10 +598,6 @@ class HeteroKeyControl(Gtk.HBox, Control): _write_async(self.sbox.setting, new_state, self.sbox) -# -# -# - _allowables_icons = {True: "changes-allow", False: "changes-prevent", _SENSITIVITY_IGNORE: "dialog-error"} _allowables_tooltips = { True: _("Changes allowed"), diff --git a/lib/solaar/ui/notify.py b/lib/solaar/ui/notify.py index 458134cc..87d480a3 100644 --- a/lib/solaar/ui/notify.py +++ b/lib/solaar/ui/notify.py @@ -25,9 +25,6 @@ from . import icons as _icons logger = logging.getLogger(__name__) -# -# -# try: import gi