Skip to content

Commit d463f55

Browse files
committed
#63: Remove dead code
1 parent af369da commit d463f55

File tree

1 file changed

+0
-58
lines changed

1 file changed

+0
-58
lines changed

Source/SPTableContent.m

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -4937,64 +4937,6 @@ - (NSString *)tableView:(NSTableView *)tableView toolTipForCell:(id)aCell rect:(
49374937
}
49384938
#endif
49394939

4940-
#ifndef SP_CODA /* SplitView delegate methods */
4941-
4942-
#pragma mark -
4943-
#pragma mark SplitView delegate methods
4944-
4945-
- (BOOL)splitView:(NSSplitView *)sender canCollapseSubview:(NSView *)subview
4946-
{
4947-
return NO;
4948-
}
4949-
4950-
/**
4951-
* Set a minimum size for the filter text area.
4952-
*/
4953-
- (CGFloat)splitView:(NSSplitView *)sender constrainMaxCoordinate:(CGFloat)proposedMax ofSubviewAt:(NSInteger)offset
4954-
{
4955-
return proposedMax - 180;
4956-
}
4957-
4958-
/**
4959-
* Set a minimum size for the field list and action area.
4960-
*/
4961-
- (CGFloat)splitView:(NSSplitView *)sender constrainMinCoordinate:(CGFloat)proposedMin ofSubviewAt:(NSInteger)offset
4962-
{
4963-
return proposedMin + 225;
4964-
}
4965-
4966-
/**
4967-
* Improve default resizing and resize only the filter text area by default.
4968-
*/
4969-
- (void)splitView:(NSSplitView *)sender resizeSubviewsWithOldSize:(NSSize)oldSize
4970-
{
4971-
NSSize newSize = [sender frame].size;
4972-
NSView *leftView = [[sender subviews] objectAtIndex:0];
4973-
NSView *rightView = [[sender subviews] objectAtIndex:1];
4974-
float dividerThickness = [sender dividerThickness];
4975-
NSRect leftFrame = [leftView frame];
4976-
NSRect rightFrame = [rightView frame];
4977-
4978-
// Resize height of both views
4979-
leftFrame.size.height = newSize.height;
4980-
rightFrame.size.height = newSize.height;
4981-
4982-
// Only resize the right view's width - unless the constraint has been reached
4983-
if (rightFrame.size.width > 180 || newSize.width > oldSize.width) {
4984-
rightFrame.size.width = newSize.width - leftFrame.size.width - dividerThickness;
4985-
}
4986-
else {
4987-
leftFrame.size.width = newSize.width - rightFrame.size.width - dividerThickness;
4988-
}
4989-
4990-
rightFrame.origin.x = leftFrame.size.width + dividerThickness;
4991-
4992-
[leftView setFrame:leftFrame];
4993-
[rightView setFrame:rightFrame];
4994-
}
4995-
4996-
#endif
4997-
49984940
#pragma mark -
49994941
#pragma mark Control delegate methods
50004942

0 commit comments

Comments
 (0)