Skip to content

Commit 3c3112f

Browse files
committed
Remove desktop changes
1 parent 6d27580 commit 3c3112f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

desktop/src/window.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@ use winit::window::{Window as WinitWindow, WindowAttributes};
44

55
use crate::consts::APP_NAME;
66
use crate::event::AppEventScheduler;
7-
#[cfg(target_os = "macos")]
8-
use crate::window::mac::NativeWindowImpl;
97
use crate::wrapper::messages::MenuItem;
108

119
pub(crate) trait NativeWindow {
12-
fn init() {}
1310
fn configure(attributes: WindowAttributes, event_loop: &dyn ActiveEventLoop) -> WindowAttributes;
1411
fn new(window: &dyn WinitWindow, app_event_scheduler: AppEventScheduler) -> Self;
1512
fn update_menu(&self, _entries: Vec<MenuItem>) {}
@@ -37,10 +34,6 @@ pub(crate) struct Window {
3734
}
3835

3936
impl Window {
40-
pub(crate) fn init() {
41-
native::NativeWindowImpl::init();
42-
}
43-
4437
pub(crate) fn new(event_loop: &dyn ActiveEventLoop, app_event_scheduler: AppEventScheduler) -> Self {
4538
let mut attributes = WindowAttributes::default()
4639
.with_title(APP_NAME)

0 commit comments

Comments
 (0)