Author: mlytwyn
Date: Thu Dec 10 18:32:33 2015
New Revision: 39227
URL: http://svn.gna.org/viewcvs/gnustep?rev=39227&view=rev
Log:
Cleanup dead code (again)
Modified:
plugins/themes/WinUXTheme/WinNSButton.m
Modified: plugins/themes/WinUXTheme/WinNSButton.m
URL:
http://svn.gna.org/viewcvs/gnustep/plugins/themes/WinUXTheme/WinNSButton.m?rev=39227&r1=39226&r2=39227&view=diff
==============================================================================
--- plugins/themes/WinUXTheme/WinNSButton.m (original)
+++ plugins/themes/WinUXTheme/WinNSButton.m Thu Dec 10 18:32:33 2015
@@ -47,16 +47,6 @@
}
}
-- (NSRect)insetFrame:(NSRect)frame withMargins:(GSThemeMargins)margins
-{
- NSRect result = frame;
- result.origin.x += margins.left;
- result.origin.y += margins.top;
- result.size.width -= (margins.left + margins.right);
- result.size.height -= (margins.top + margins.bottom);
- return(result);
-}
-
- (void) drawButton: (NSRect) frame
in: (NSCell*) cell
view: (NSView*) view
@@ -75,18 +65,10 @@
HTHEME hTheme = [self themeWithClassName: @"button"];
int drawState = _ButtonStateForThemeControlState(state);
- GSThemeMargins margins = [self buttonMarginsForCell: cell style: style
state: state];
- NSRect drawFrame = [self insetFrame:frame withMargins:margins];
- drawFrame = frame;
-
-#if 0
- NSLog(@"%s:title: %@ frame: %@ drawFrame: %@", __PRETTY_FUNCTION__, [cell
title],
- NSStringFromRect(frame), NSStringFromRect(drawFrame));
-#endif
if (![self drawThemeBackground: hTheme
- inRect: drawFrame
+ inRect: frame
part: BP_PUSHBUTTON
state: drawState])
{
@@ -191,5 +173,4 @@
return margins;
}
-
@end
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs