Remove unnecessary if check

This commit is contained in:
Birunthan Mohanathas 2017-06-07 01:19:53 +03:00
parent 3106478510
commit f60315141b

View file

@ -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;
}