mac: UninstallView is not used

This commit is contained in:
Cheng Zhao 2018-03-06 14:47:41 +09:00
parent 3b3e69f8b2
commit 498f5d65fd
2 changed files with 0 additions and 6 deletions

View file

@ -141,7 +141,6 @@ class NativeWindowMac : public NativeWindow {
void ShowWindowButton(NSWindowButton button);
void InstallView();
void UninstallView();
base::scoped_nsobject<AtomNSWindow> window_;
base::scoped_nsobject<AtomNSWindowDelegate> window_delegate_;

View file

@ -1819,11 +1819,6 @@ void NativeWindowMac::InstallView() {
}
}
void NativeWindowMac::UninstallView() {
NSView* view = inspectable_web_contents()->GetView()->GetNativeView();
[view removeFromSuperview];
}
void NativeWindowMac::SetStyleMask(bool on, NSUInteger flag) {
// Changing the styleMask of a frameless windows causes it to change size so
// we explicitly disable resizing while setting it.