Remove unnecessary if check
This commit is contained in:
parent
3106478510
commit
f60315141b
1 changed files with 41 additions and 44 deletions
|
@ -59,10 +59,8 @@ bool ScopedDisableResize::disable_resize_ = false;
|
|||
- (id)initWithFrame:(NSRect)frame {
|
||||
self = [super initWithFrame:frame];
|
||||
|
||||
if (self) {
|
||||
mouse_inside_ = NO;
|
||||
|
||||
// create buttons
|
||||
NSButton* closeButton = [NSWindow standardWindowButton:NSWindowCloseButton
|
||||
forStyleMask:NSTitledWindowMask];
|
||||
NSButton* minitButton = [NSWindow standardWindowButton:NSWindowMiniaturizeButton
|
||||
|
@ -109,7 +107,6 @@ bool ScopedDisableResize::disable_resize_ = false;
|
|||
|
||||
// refresh for initial conditions
|
||||
[self setNeedsDisplayForButtons];
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue