Skip to content

Commit

Permalink
fix!: Remove accesskit_winit::Adapter::update (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
DataTriny authored Dec 27, 2023
1 parent cf8d4eb commit f121bff
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 21 deletions.
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

0 comments on commit f121bff

Please sign in to comment.