From 8e785c22108ebdca90cc380fbe010f564da5eedc Mon Sep 17 00:00:00 2001 From: Martin Carlberg Date: Fri, 25 May 2012 10:47:07 +0200 Subject: [PATCH] Removed set and get methods and blank line before if added. --- AppKit/CPTableView.j | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index d33f62dc1..39bd69836 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -794,26 +794,6 @@ NOT YET IMPLEMENTED return [self currentValueForThemeAttribute:@"selection-color"]; } -/*! - Sets the highlight radius for a row or column selection. - - @param aRadius a int -*/ -- (void)setSelectionHighlightRadius:(int)aRadius -{ - [self setValue:aRadius forThemeAttribute:"selection-radius"]; - - [self setNeedsDisplay:YES]; -} - -/*! - Returns the highlight radius for a row or column selection. -*/ -- (int)selectionHighlightRadius -{ - return [self currentValueForThemeAttribute:@"selection-radius"]; -} - /*! Sets the highlight gradient for a row or column selection @@ -3794,7 +3774,8 @@ Your delegate can implement this method to avoid subclassing the tableview to ad } else { - var radius = [self selectionHighlightRadius]; + var radius = [self currentValueForThemeAttribute:@"selection-radius"]; + if (radius > 0) { var minX = CGRectGetMinX(rowRect),