Remove unused function and useless comment
This commit is contained in:
parent
bcdc97a56b
commit
6ddfbadfbf
@ -126,9 +126,7 @@ class InternalState:
|
|||||||
|
|
||||||
def tap_key(self, keycode):
|
def tap_key(self, keycode):
|
||||||
self.add_key(keycode)
|
self.add_key(keycode)
|
||||||
# On the next cycle, we'll remove the key. This is way more clean than
|
# On the next cycle, we'll remove the key.
|
||||||
# the `pending_keys` implementation that we used to rely on in
|
|
||||||
# firmware.py
|
|
||||||
self.set_timeout(False, lambda: self.remove_key(keycode))
|
self.set_timeout(False, lambda: self.remove_key(keycode))
|
||||||
|
|
||||||
return self
|
return self
|
||||||
@ -137,16 +135,6 @@ class InternalState:
|
|||||||
self.hid_pending = False
|
self.hid_pending = False
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def _process_internal_key_event(self, changed_key, is_pressed):
|
|
||||||
# Since the key objects can be chained into new objects
|
|
||||||
# with, for example, no_press set, always check against
|
|
||||||
# the underlying code rather than comparing Key
|
|
||||||
# objects
|
|
||||||
|
|
||||||
return self.internal_key_handlers[changed_key.code](
|
|
||||||
changed_key, is_pressed,
|
|
||||||
)
|
|
||||||
|
|
||||||
def _process_tap_dance(self, changed_key, is_pressed):
|
def _process_tap_dance(self, changed_key, is_pressed):
|
||||||
if is_pressed:
|
if is_pressed:
|
||||||
if not isinstance(changed_key.meta, TapDanceKeyMeta):
|
if not isinstance(changed_key.meta, TapDanceKeyMeta):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user