Skip to content

Commit

Permalink
machine/geminipr: remove dead code
Browse files Browse the repository at this point in the history
Since the code is invalid, and would have raised an exception if
executed, I think it's pretty safe to assume it's not useful...
  • Loading branch information
benoit-pierre committed Jun 26, 2016
1 parent e1b24cb commit 39198e9
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions plover/machine/geminipr.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,6 @@ def run(self):
if isinstance(raw, str):
raw = [ord(x) for x in raw]

# Make sure this is a valid steno stroke.
if not ((len(raw) == BYTES_PER_STROKE) and
(raw[0] & 0x80) and
(len([b for b in raw if b & 0x80]) == 1)):
serial_port.flushInput()
continue

# Convert the raw to a list of steno keys.
steno_keys = []
for i, b in enumerate(raw):
Expand Down

0 comments on commit 39198e9

Please sign in to comment.