From b49c88564b3a9dd58046440d3754d57dca05fef8 Mon Sep 17 00:00:00 2001 From: "pinkerton@chromium.org" Date: Wed, 11 Mar 2009 19:17:20 +0000 Subject: Getting rid of dead code. Review URL: http://codereview.chromium.org/43090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11468 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/tab_strip_view.mm | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'chrome/browser/cocoa') diff --git a/chrome/browser/cocoa/tab_strip_view.mm b/chrome/browser/cocoa/tab_strip_view.mm index b54ef9d..d63d6ef 100644 --- a/chrome/browser/cocoa/tab_strip_view.mm +++ b/chrome/browser/cocoa/tab_strip_view.mm @@ -15,19 +15,9 @@ } - (void)drawRect:(NSRect)rect { - rect = [self bounds]; - BOOL isKey = [[self window] isKeyWindow]; - if (isKey) { - NSGradient *gradient = - [[[NSGradient alloc] initWithStartingColor: - [NSColor colorWithCalibratedWhite:0.0 alpha:0.0] - endingColor: - [NSColor colorWithCalibratedWhite:0.0 alpha:0.05]] autorelease]; - [gradient drawInRect:[self bounds] angle:270.0]; - } - + NSRect boundsRect = [self bounds]; NSRect borderRect, contentRect; - NSDivideRect(rect, &borderRect, &contentRect, 1, NSMinYEdge); + NSDivideRect(boundsRect, &borderRect, &contentRect, 1, NSMinYEdge); [[NSColor colorWithCalibratedWhite:0.0 alpha:0.2] set]; NSRectFillUsingOperation(borderRect, NSCompositeSourceOver); -- cgit v1.1