Remove unused clear method
This commit is contained in:
parent
b959f782f6
commit
347d472841
2 changed files with 1 additions and 7 deletions
|
@ -25,14 +25,12 @@
|
||||||
atom::NativeWindow* window_;
|
atom::NativeWindow* window_;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id)initWithDelegate:(id<NSTouchBarDelegate>)delegate
|
- (id)initWithDelegate:(id<NSTouchBarDelegate>)delegate window:(atom::NativeWindow*)window;
|
||||||
window:(atom::NativeWindow*)window;
|
|
||||||
|
|
||||||
- (NSTouchBar*)makeTouchBarFromSettings:(const std::vector<mate::PersistentDictionary>&)settings;
|
- (NSTouchBar*)makeTouchBarFromSettings:(const std::vector<mate::PersistentDictionary>&)settings;
|
||||||
- (NSTouchBar*)touchBarFromItemIdentifiers:(NSMutableArray*)items;
|
- (NSTouchBar*)touchBarFromItemIdentifiers:(NSMutableArray*)items;
|
||||||
- (NSMutableArray*)identifiersFromSettings:(const std::vector<mate::PersistentDictionary>&)settings;
|
- (NSMutableArray*)identifiersFromSettings:(const std::vector<mate::PersistentDictionary>&)settings;
|
||||||
- (void)refreshTouchBarItem:(const std::string&)item_id;
|
- (void)refreshTouchBarItem:(const std::string&)item_id;
|
||||||
- (void)clear;
|
|
||||||
|
|
||||||
- (NSString*)idFromIdentifier:(NSString*)identifier withPrefix:(NSString*)prefix;
|
- (NSString*)idFromIdentifier:(NSString*)identifier withPrefix:(NSString*)prefix;
|
||||||
- (bool)hasItemWithID:(const std::string&)item_id;
|
- (bool)hasItemWithID:(const std::string&)item_id;
|
||||||
|
|
|
@ -28,10 +28,6 @@ static NSTouchBarItemIdentifier SliderIdentifier = @"com.electron.touchbar.slide
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)clear {
|
|
||||||
settings_.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
- (NSTouchBar*)makeTouchBarFromSettings:(const std::vector<mate::PersistentDictionary>&)settings {
|
- (NSTouchBar*)makeTouchBarFromSettings:(const std::vector<mate::PersistentDictionary>&)settings {
|
||||||
NSMutableArray* identifiers = [self identifiersFromSettings:settings];
|
NSMutableArray* identifiers = [self identifiersFromSettings:settings];
|
||||||
return [self touchBarFromItemIdentifiers:identifiers];
|
return [self touchBarFromItemIdentifiers:identifiers];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue