aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorMax <dmoagx@users.noreply.github.com>2018-05-07 23:15:12 +0200
committerMax <dmoagx@users.noreply.github.com>2018-05-07 23:15:12 +0200
commitd463f555748c9010ab7b570851b8648fa9e117a8 (patch)
tree3fb1daf3d319d10d8c6168ad5cd6ab65751d0663 /Source
parentaf369da49328f699f951760fa5af7463cb401e99 (diff)
downloadsequelpro-d463f555748c9010ab7b570851b8648fa9e117a8.tar.gz
sequelpro-d463f555748c9010ab7b570851b8648fa9e117a8.tar.bz2
sequelpro-d463f555748c9010ab7b570851b8648fa9e117a8.zip
#63: Remove dead code
Diffstat (limited to 'Source')
-rw-r--r--Source/SPTableContent.m58
1 files changed, 0 insertions, 58 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index 603e9671..934745f6 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -4937,64 +4937,6 @@ static NSString *SPTableFilterSetDefaultOperator = @"SPTableFilterSetDefaultOper
}
#endif
-#ifndef SP_CODA /* SplitView delegate methods */
-
-#pragma mark -
-#pragma mark SplitView delegate methods
-
-- (BOOL)splitView:(NSSplitView *)sender canCollapseSubview:(NSView *)subview
-{
- return NO;
-}
-
-/**
- * Set a minimum size for the filter text area.
- */
-- (CGFloat)splitView:(NSSplitView *)sender constrainMaxCoordinate:(CGFloat)proposedMax ofSubviewAt:(NSInteger)offset
-{
- return proposedMax - 180;
-}
-
-/**
- * Set a minimum size for the field list and action area.
- */
-- (CGFloat)splitView:(NSSplitView *)sender constrainMinCoordinate:(CGFloat)proposedMin ofSubviewAt:(NSInteger)offset
-{
- return proposedMin + 225;
-}
-
-/**
- * Improve default resizing and resize only the filter text area by default.
- */
-- (void)splitView:(NSSplitView *)sender resizeSubviewsWithOldSize:(NSSize)oldSize
-{
- NSSize newSize = [sender frame].size;
- NSView *leftView = [[sender subviews] objectAtIndex:0];
- NSView *rightView = [[sender subviews] objectAtIndex:1];
- float dividerThickness = [sender dividerThickness];
- NSRect leftFrame = [leftView frame];
- NSRect rightFrame = [rightView frame];
-
- // Resize height of both views
- leftFrame.size.height = newSize.height;
- rightFrame.size.height = newSize.height;
-
- // Only resize the right view's width - unless the constraint has been reached
- if (rightFrame.size.width > 180 || newSize.width > oldSize.width) {
- rightFrame.size.width = newSize.width - leftFrame.size.width - dividerThickness;
- }
- else {
- leftFrame.size.width = newSize.width - rightFrame.size.width - dividerThickness;
- }
-
- rightFrame.origin.x = leftFrame.size.width + dividerThickness;
-
- [leftView setFrame:leftFrame];
- [rightView setFrame:rightFrame];
-}
-
-#endif
-
#pragma mark -
#pragma mark Control delegate methods