mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:20:38 +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
81fdb0bb0f
commit
7b08af4087
2 changed files with 6 additions and 10 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue