diff --git a/lib/solaar/ui/diversion_rules.py b/lib/solaar/ui/diversion_rules.py index d4396888eb..a3af39f4ab 100644 --- a/lib/solaar/ui/diversion_rules.py +++ b/lib/solaar/ui/diversion_rules.py @@ -41,10 +41,6 @@ logger = logging.getLogger(__name__) -# -# -# - _diversion_dialog = None _rule_component_clipboard = None @@ -708,20 +704,6 @@ def update_devices(self): self.view.queue_draw() -## Not currently used -# -# class HexEntry(Gtk.Entry, Gtk.Editable): -# -# def do_insert_text(self, new_text, length, pos): -# new_text = new_text.upper() -# from string import hexdigits -# if any(c for c in new_text if c not in hexdigits): -# return pos -# else: -# self.get_buffer().insert_text(pos, new_text, length) -# return pos + length - - def norm(s): return s.replace("_", "").replace(" ", "").lower()