diff --git a/atom/browser/ui/cocoa/atom_touch_bar.h b/atom/browser/ui/cocoa/atom_touch_bar.h index ff70f1274f..d0146ec5f9 100644 --- a/atom/browser/ui/cocoa/atom_touch_bar.h +++ b/atom/browser/ui/cocoa/atom_touch_bar.h @@ -25,14 +25,12 @@ atom::NativeWindow* window_; } -- (id)initWithDelegate:(id)delegate - window:(atom::NativeWindow*)window; +- (id)initWithDelegate:(id)delegate window:(atom::NativeWindow*)window; - (NSTouchBar*)makeTouchBarFromSettings:(const std::vector&)settings; - (NSTouchBar*)touchBarFromItemIdentifiers:(NSMutableArray*)items; - (NSMutableArray*)identifiersFromSettings:(const std::vector&)settings; - (void)refreshTouchBarItem:(const std::string&)item_id; -- (void)clear; - (NSString*)idFromIdentifier:(NSString*)identifier withPrefix:(NSString*)prefix; - (bool)hasItemWithID:(const std::string&)item_id; diff --git a/atom/browser/ui/cocoa/atom_touch_bar.mm b/atom/browser/ui/cocoa/atom_touch_bar.mm index 33c5201da0..f7656fa803 100644 --- a/atom/browser/ui/cocoa/atom_touch_bar.mm +++ b/atom/browser/ui/cocoa/atom_touch_bar.mm @@ -28,10 +28,6 @@ static NSTouchBarItemIdentifier SliderIdentifier = @"com.electron.touchbar.slide return self; } -- (void)clear { - settings_.clear(); -} - - (NSTouchBar*)makeTouchBarFromSettings:(const std::vector&)settings { NSMutableArray* identifiers = [self identifiersFromSettings:settings]; return [self touchBarFromItemIdentifiers:identifiers];