Remove unused clear method

This commit is contained in:
Kevin Sawicki 2017-02-28 17:15:30 -08:00
parent b959f782f6
commit 347d472841
2 changed files with 1 additions and 7 deletions

View file

@ -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;

View file

@ -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];