mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-04 11:54:59 +00:00
Removed unecessary functions.
Reviewed by me.
This commit is contained in:
1 parent
3f7db4ca12
commit
824cd6d5f1
1 file changed
-47
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user