Removed unecessary functions.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I committed 2009-08-21 20:03:26 -07:00
1 parent 3f7db4ca12
commit 824cd6d5f1
1 file changed
-47
-47
View File
@@ -754,36 +754,6 @@ CPTableViewSolidHorizontalGridLineMask = 1 << 1;
return CPMakeRange(firstRow, lastRow - firstRow + 1);
}
- (CPRange)drawnRowsInRect:(CGRect)aRect
{
var bounds = nil,
firstRow = [self drawnRowAtPoint:aRect.origin],
lastRow = [self drawnRowAtPoint:_CGPointMake(0.0, _CGRectGetMaxY(aRect))];
if (firstRow < 0)
{
bounds = [self bounds];
if (_CGRectGetMinY(aRect) < _CGRectGetMinY(bounds))
firstRow = 0;
else
firstRow = _numberOfRows - 1;
}
if (lastRow < 0)
{
if (!bounds)
bounds = [self bounds];
if (_CGRectGetMaxY(aRect) < _CGRectGetMinY(bounds))
lastRow = 0;
else
lastRow = _numberOfRows - 1;
}
return CPMakeRange(firstRow, lastRow - firstRow + 1);
}
// Complexity:
// O(lg Columns) if table view contains no hidden columns
// O(Columns) if table view contains hidden columns
@@ -858,23 +828,6 @@ CPTableViewSolidHorizontalGridLineMask = 1 << 1;
return CPNotFound;
}
- (CPInteger)drawnRowAtPoint:(CGPoint)aPoint
{
var y = aPoint.y;
if (NO)
{
}
var row = FLOOR(y / (_rowHeight + _intercellSpacing.height));
//if (row >= _numberOfRows)
// return -1;
return row;
}
- (CPInteger)rowAtPoint:(CGPoint)aPoint
{
var y = aPoint.y;