Remove uneeded checks for _viewBased

This commit is contained in:
Gregory John Casamento 2024-02-15 09:36:14 -05:00
parent db773ae9ec
commit d99f82896b

View file

@ -3362,11 +3362,6 @@ byExtendingSelection: (BOOL)flag
NSRect drawingRect;
NSUInteger length = 0;
if (_viewBased)
{
return;
}
if (rowIndex != _selectedRow)
{
[NSException raise:NSInvalidArgumentException
@ -3500,11 +3495,6 @@ static inline NSTimeInterval computePeriod(NSPoint mouseLocationWin,
row: (NSInteger) rowIndex
withEvent: (NSEvent *) theEvent
{
if (_viewBased)
{
return;
}
if (rowIndex == -1 || columnIndex == -1)
{
return;
@ -5828,11 +5818,6 @@ This method is deprecated, use -columnIndexesInRect:. */
{
NSInteger i, j;
if (_viewBased)
{
return;
}
if (aCell == nil)
return;
@ -6732,7 +6717,7 @@ For a more detailed explanation, -setSortDescriptors:. */
forTableColumn: (NSTableColumn *)tb
row: (NSInteger)index
{
if (_del_responds && _viewBased == NO)
if (_del_responds)
{
[_delegate tableView: self
willDisplayCell: cell