mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 08:30:59 +00:00
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:
parent
8bc228a47e
commit
493e34b57e
2 changed files with 6 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue