mirror of
https://github.com/electron/electron.git
synced 2026-01-28 00:38:35 -05:00
mac: UninstallView is not used
This commit is contained in:
@@ -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_;
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user