diff options
author | Teddy Wing | 2018-10-29 22:02:36 +0100 |
---|---|---|
committer | Teddy Wing | 2018-10-29 22:02:36 +0100 |
commit | 4dce73400763d541934d548b16c01b870d360690 (patch) | |
tree | 378155b9d96d039063de80e786d486a7f8d56921 | |
parent | c350333b3ce5b7ec10005063778f103ba8fb0f3a (diff) | |
download | DomeKey-4dce73400763d541934d548b16c01b870d360690.tar.bz2 |
HeadphoneKey: Remove unused `_in_mode` instance variable
This was for when I was trying to store the current mode in this class.
It's now stored in a `State` variable.
-rw-r--r-- | DomeKey/HeadphoneKey.h | 2 | ||||
-rw-r--r-- | DomeKey/HeadphoneKey.m | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/DomeKey/HeadphoneKey.h b/DomeKey/HeadphoneKey.h index 42464f5..fc500cd 100644 --- a/DomeKey/HeadphoneKey.h +++ b/DomeKey/HeadphoneKey.h @@ -23,8 +23,6 @@ static const Milliseconds TIMEOUT_DEFAULT = 500; @interface HeadphoneKey : NSObject { NSArray *_mikeys; NSMutableArray *_key_buffer; -// const Trigger *_in_mode; - Trigger *_in_mode; State *_state; Milliseconds _timeout; } diff --git a/DomeKey/HeadphoneKey.m b/DomeKey/HeadphoneKey.m index 035e657..a176cbf 100644 --- a/DomeKey/HeadphoneKey.m +++ b/DomeKey/HeadphoneKey.m @@ -17,7 +17,6 @@ static const Sounds *sounds_inst; self = [super init]; if (self) { _key_buffer = [[NSMutableArray alloc] initWithCapacity:5]; - _in_mode = NULL; _state = dome_key_state_new(); // Should never be used. We initialise it just in case, but the real |