Skip to content

Commit

Permalink
refactor: Remove unused accesskit_sdl_adapter_update function from …
Browse files Browse the repository at this point in the history
…the SDL example (#327)
  • Loading branch information
DataTriny authored Dec 27, 2023
1 parent f121bff commit bee7a47
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions bindings/c/examples/sdl/hello_world.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,26 +99,6 @@ void accesskit_sdl_adapter_destroy(struct accesskit_sdl_adapter *adapter) {
}
}

void accesskit_sdl_adapter_update(const struct accesskit_sdl_adapter *adapter,
accesskit_tree_update *update) {
#if defined(__APPLE__)
accesskit_macos_queued_events *events =
accesskit_macos_subclassing_adapter_update(adapter->adapter, update);
if (events != NULL) {
accesskit_macos_queued_events_raise(events);
}
#elif defined(UNIX)
if (adapter->adapter != NULL)
accesskit_unix_adapter_update(adapter->adapter, update);
#elif defined(_WIN32)
accesskit_windows_queued_events *events =
accesskit_windows_subclassing_adapter_update(adapter->adapter, update);
if (events != NULL) {
accesskit_windows_queued_events_raise(events);
}
#endif
}

void accesskit_sdl_adapter_update_if_active(
const struct accesskit_sdl_adapter *adapter,
accesskit_tree_update_factory update_factory,
Expand Down

0 comments on commit bee7a47

Please sign in to comment.