aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-10-29 22:02:36 +0100
committerTeddy Wing2018-10-29 22:02:36 +0100
commit4dce73400763d541934d548b16c01b870d360690 (patch)
tree378155b9d96d039063de80e786d486a7f8d56921
parentc350333b3ce5b7ec10005063778f103ba8fb0f3a (diff)
downloadDomeKey-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.h2
-rw-r--r--DomeKey/HeadphoneKey.m1
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