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_;
|
||||
}
|
||||
|
||||
- (id)initWithDelegate:(id<NSTouchBarDelegate>)delegate
|
||||
window:(atom::NativeWindow*)window;
|
||||
- (id)initWithDelegate:(id<NSTouchBarDelegate>)delegate window:(atom::NativeWindow*)window;
|
||||
|
||||
- (NSTouchBar*)makeTouchBarFromSettings:(const std::vector<mate::PersistentDictionary>&)settings;
|
||||
- (NSTouchBar*)touchBarFromItemIdentifiers:(NSMutableArray*)items;
|
||||
- (NSMutableArray*)identifiersFromSettings:(const std::vector<mate::PersistentDictionary>&)settings;
|
||||
- (void)refreshTouchBarItem:(const std::string&)item_id;
|
||||
- (void)clear;
|
||||
|
||||
- (NSString*)idFromIdentifier:(NSString*)identifier withPrefix:(NSString*)prefix;
|
||||
- (bool)hasItemWithID:(const std::string&)item_id;
|
||||
|
|
|
@ -28,10 +28,6 @@ static NSTouchBarItemIdentifier SliderIdentifier = @"com.electron.touchbar.slide
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void)clear {
|
||||
settings_.clear();
|
||||
}
|
||||
|
||||
- (NSTouchBar*)makeTouchBarFromSettings:(const std::vector<mate::PersistentDictionary>&)settings {
|
||||
NSMutableArray* identifiers = [self identifiersFromSettings:settings];
|
||||
return [self touchBarFromItemIdentifiers:identifiers];
|
||||
|
|
Loading…
Reference in a new issue