From fdd5aa0a5ad874bf7a9784f714937feff2280cf5 Mon Sep 17 00:00:00 2001 From: Alexandre Wilhelm Date: Wed, 9 Jan 2013 18:24:06 -0800 Subject: [PATCH] Removed unused comments --- AppKit/CPToolbar.j | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/AppKit/CPToolbar.j b/AppKit/CPToolbar.j index 5b7dc7a57..9c3e2e8c9 100644 --- a/AppKit/CPToolbar.j +++ b/AppKit/CPToolbar.j @@ -135,19 +135,6 @@ var CPToolbarsByIdentifier = nil, [toolbarsSharingIdentifier addObject:toolbar]; } -// /* -// Temporary theme attributes until we've figured out which CPView these theme attributes should -// belong to. -// @ignore -// */ -// + (id)_themeAttributes -// { -// // "regular-size-height" is used if no item has a non-zero min size and sizeMode == CPToolbarSizeModeRegular. -// // "small-size-height" is used if no item has a non-zero min size and sizeMode == CPToolbarSizeModeSmall. -// return [CPDictionary dictionaryWithObjects:[_CGInsetMake(4.0, 4.0, 4.0, TOOLBAR_ITEM_MARGIN), 59.0, 46.0] -// forKeys:[@"content-inset", @"regular-size-height", @"small-size-height"]]; -// } - - (id)init { return [self initWithIdentifier:@""]; @@ -285,16 +272,6 @@ var CPToolbarsByIdentifier = nil, return CPRectMake(0.0, 0.0, 1200.0, height); } -// /* -// Temporary theme attributes until we've figured out which CPView these theme attributes should -// belong to. -// @ignore -// */ -// - (id)_valueForThemeAttribute:(CPString)attributeName -// { -// return [[[self class] _themeAttributes] valueForKey:attributeName]; -// } - /* @ignore */ - (CPView)_toolbarView { @@ -592,9 +569,6 @@ var _CPToolbarViewBackgroundColor = nil, _CPToolbarViewExtraItemsImage = nil, _CPToolbarViewExtraItemsAlternateImage = nil; -// var TOOLBAR_ITEM_MARGIN = 10.0, -// TOOLBAR_EXTRA_ITEMS_WIDTH = 20.0; - var _CPToolbarItemInfoMake = function(anIndex, aView, aLabel, aMinWidth) { return { index:anIndex, view:aView, label:aLabel, minWidth:aMinWidth }; @@ -623,19 +597,6 @@ var _CPToolbarItemInfoMake = function(anIndex, aView, aLabel, aMinWidth) BOOL _FIXME_isHUD; } -// + (void)initialize -// { -// if (self !== [_CPToolbarView class]) -// return; -// -// var bundle = [CPBundle bundleForClass:self]; -// -// _CPToolbarViewExtraItemsImage = [[CPImage alloc] initWithContentsOfFile:[bundle pathForResource:"_CPToolbarView/_CPToolbarViewExtraItemsImage.png"] size:CPSizeMake(10.0, 15.0)]; -// -// _CPToolbarViewExtraItemsAlternateImage = [[CPImage alloc] initWithContentsOfFile:[bundle pathForResource:"_CPToolbarView/_CPToolbarViewExtraItemsAlternateImage.png"] size:_CGSizeMake(10.0, 15.0)]; -// } - - + (CPString)defaultThemeClass { return @"toolbar-view"; @@ -664,8 +625,6 @@ var _CPToolbarItemInfoMake = function(anIndex, aView, aLabel, aMinWidth) [_additionalItemsButton setImagePosition:CPImageOnly]; [[_additionalItemsButton menu] setShowsStateColumn:NO]; [[_additionalItemsButton menu] setAutoenablesItems:NO]; - - //[_additionalItemsButton setAlternateImage:_CPToolbarViewExtraItemsAlternateImage]; } return self;