From 20696312af683859036fc3a2119f8f969e021b9f Mon Sep 17 00:00:00 2001 From: DataTriny Date: Wed, 27 Dec 2023 17:55:59 +0100 Subject: [PATCH] refactor: Remove unused `accesskit_sdl_adapter_update` function from the SDL example --- bindings/c/examples/sdl/hello_world.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/bindings/c/examples/sdl/hello_world.c b/bindings/c/examples/sdl/hello_world.c index 0e626143f..1199cbbbc 100644 --- a/bindings/c/examples/sdl/hello_world.c +++ b/bindings/c/examples/sdl/hello_world.c @@ -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,