Author: gcasa
Date: Fri Jul 25 13:32:54 2014
New Revision: 38013
URL: http://svn.gna.org/viewcvs/gnustep?rev=38013&view=rev
Log:
Remove uneeded code from NSWindow in initWithContentRect:
Modified:
libs/gui/trunk/ChangeLog
libs/gui/trunk/Source/NSWindow.m
Modified: libs/gui/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/ChangeLog?rev=38013&r1=38012&r2=38013&view=diff
==============================================================================
--- libs/gui/trunk/ChangeLog (original)
+++ libs/gui/trunk/ChangeLog Fri Jul 25 13:32:54 2014
@@ -1,3 +1,9 @@
+2014-07-25 Gregory John Casamento <[email protected]>
+
+ * Source/NSWindow.m: Remove code in (initWithContentRect:..) which
+ checks to see if style is NSWindows95InterfaceStyle. This code
+ is never executed.
+
2014-07-24 Fred Kiefer <[email protected]>
* Source/GSGormLoading.m (GSWindowTemplate initWithCoder:): Remove
Modified: libs/gui/trunk/Source/NSWindow.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/NSWindow.m?rev=38013&r1=38012&r2=38013&view=diff
==============================================================================
--- libs/gui/trunk/Source/NSWindow.m (original)
+++ libs/gui/trunk/Source/NSWindow.m Fri Jul 25 13:32:54 2014
@@ -1029,8 +1029,6 @@
defer: (BOOL)flag
{
NSRect cframe;
- NSInterfaceStyle style =
- NSInterfaceStyleForKey(@"NSMenuInterfaceStyle", nil);
NSAssert(NSApp,
@"The shared NSApplication instance must be created before windows "
@@ -1101,14 +1099,6 @@
selector: @selector(colorListChanged:)
name: NSColorListDidChangeNotification
object: nil];
-
- if (style == NSWindows95InterfaceStyle)
- {
- if([self canBecomeMainWindow])
- {
- [self setMenu: [NSApp mainMenu]];
- }
- }
NSDebugLLog(@"NSWindow", @"NSWindow end of init\n");
return self;
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs