Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions platforms/winit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,6 @@ impl Adapter {
self.adapter.process_event(window, event);
}

pub fn update(&self, update: TreeUpdate) {
self.adapter.update(update);
}

pub fn update_if_active(&self, updater: impl FnOnce() -> TreeUpdate) {
self.adapter.update_if_active(updater);
}
Expand Down
5 changes: 0 additions & 5 deletions platforms/winit/src/platform_impl/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ impl Adapter {
Self { adapter }
}

pub fn update(&self, update: TreeUpdate) {
let events = self.adapter.update(update);
events.raise();
}

pub fn update_if_active(&self, updater: impl FnOnce() -> TreeUpdate) {
if let Some(events) = self.adapter.update_if_active(updater) {
events.raise();
Expand Down
2 changes: 0 additions & 2 deletions platforms/winit/src/platform_impl/null.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ impl Adapter {
Self {}
}

pub fn update(&self, _update: TreeUpdate) {}

pub fn update_if_active(&self, _updater: impl FnOnce() -> TreeUpdate) {}

pub fn process_event(&self, _window: &Window, _event: &WindowEvent) {}
Expand Down
6 changes: 0 additions & 6 deletions platforms/winit/src/platform_impl/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ impl Adapter {
}
}

pub fn update(&self, update: TreeUpdate) {
if let Some(adapter) = &self.adapter {
adapter.update(update);
}
}

pub fn update_if_active(&self, updater: impl FnOnce() -> TreeUpdate) {
if let Some(adapter) = &self.adapter {
adapter.update(updater());
Expand Down
4 changes: 0 additions & 4 deletions platforms/winit/src/platform_impl/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ impl Adapter {
Self { adapter }
}

pub fn update(&self, update: TreeUpdate) {
self.adapter.update(update).raise();
}

pub fn update_if_active(&self, updater: impl FnOnce() -> TreeUpdate) {
if let Some(events) = self.adapter.update_if_active(updater) {
events.raise();
Expand Down