Remove uneeded code from NSWindow in initWithContentRect:

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38013 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2014-07-25 11:32:54 +00:00
parent 8bc228a47e
commit 493e34b57e
2 changed files with 6 additions and 10 deletions

View file

@ -1,3 +1,9 @@
2014-07-25 Gregory John Casamento <greg.casamento@gmail.com>
* 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 <FredKiefer@gmx.de>
* Source/GSGormLoading.m (GSWindowTemplate initWithCoder:): Remove

View file

@ -1029,8 +1029,6 @@ many times.
defer: (BOOL)flag
{
NSRect cframe;
NSInterfaceStyle style =
NSInterfaceStyleForKey(@"NSMenuInterfaceStyle", nil);
NSAssert(NSApp,
@"The shared NSApplication instance must be created before windows "
@ -1102,14 +1100,6 @@ many times.
name: NSColorListDidChangeNotification
object: nil];
if (style == NSWindows95InterfaceStyle)
{
if([self canBecomeMainWindow])
{
[self setMenu: [NSApp mainMenu]];
}
}
NSDebugLLog(@"NSWindow", @"NSWindow end of init\n");
return self;
}