diff options
Diffstat (limited to 'chrome/browser/cocoa/autoseparating_menu.m')
-rw-r--r-- | chrome/browser/cocoa/autoseparating_menu.m | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/chrome/browser/cocoa/autoseparating_menu.m b/chrome/browser/cocoa/autoseparating_menu.m deleted file mode 100644 index e0f36a7..0000000 --- a/chrome/browser/cocoa/autoseparating_menu.m +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#import "chrome/browser/cocoa/autoseparating_menu.h" - -@implementation AutoseparatingMenu - -- (NSMenuItem *)insertItemWithTitle:(NSString *)aString - action:(SEL)aSelector - keyEquivalent:(NSString *)keyEquiv - atIndex:(NSInteger)index { - if ([aString isEqualToString:@"-"]) { - NSMenuItem* separator = [NSMenuItem separatorItem]; - [self insertItem:separator - atIndex:index]; - return separator; - } else { - return [super insertItemWithTitle:aString - action:aSelector - keyEquivalent:keyEquiv - atIndex:index]; - } -} - -@end |