diff options
| -rw-r--r-- | DomeKey/HeadphoneKey.h | 1 | ||||
| -rw-r--r-- | DomeKey/HeadphoneKey.m | 15 | 
2 files changed, 1 insertions, 15 deletions
| diff --git a/DomeKey/HeadphoneKey.h b/DomeKey/HeadphoneKey.h index 3be7148..861621f 100644 --- a/DomeKey/HeadphoneKey.h +++ b/DomeKey/HeadphoneKey.h @@ -29,6 +29,5 @@ static const unsigned int TIMEOUT_MILLISECONDS = 1000;  - (void)handleDeadKey:(HeadphoneButton)button;  - (void)runAction; -- (const Trigger *)maybeSwitchToMode:(const CKeyActionResult *)result;  @end diff --git a/DomeKey/HeadphoneKey.m b/DomeKey/HeadphoneKey.m index 9d3a9fb..1556427 100644 --- a/DomeKey/HeadphoneKey.m +++ b/DomeKey/HeadphoneKey.m @@ -83,22 +83,9 @@          .length = count      }; -    const CKeyActionResult *result = c_run_key_action(_state, trigger, _in_mode); +    c_run_key_action(_state, trigger, _in_mode);      [_key_buffer removeAllObjects];  } -- (const Trigger *)maybeSwitchToMode:(const CKeyActionResult *)result -{ -    // if _in_mode is not null, nullify it -    // TODO: rename this method - -    if (result->kind && -            *result->kind == ActionKind_Mode) { -        _in_mode = result->in_mode; -    } - -    return _in_mode; -} -  @end | 
