diff --git a/gum/backend-arm/gumstalker-arm.c b/gum/backend-arm/gumstalker-arm.c index 22bebd4ec3..c50633319c 100644 --- a/gum/backend-arm/gumstalker-arm.c +++ b/gum/backend-arm/gumstalker-arm.c @@ -6213,13 +6213,6 @@ gum_count_trailing_zeros (guint16 value) #endif - -gboolean -gum_stalker_is_run_on_thread_supported (void) -{ - return TRUE; -} - gboolean gum_stalker_run_on_thread (GumStalker * self, GumThreadId thread_id, diff --git a/gum/backend-arm64/gumstalker-arm64.c b/gum/backend-arm64/gumstalker-arm64.c index e63febbf2f..42495470cf 100644 --- a/gum/backend-arm64/gumstalker-arm64.c +++ b/gum/backend-arm64/gumstalker-arm64.c @@ -5898,12 +5898,6 @@ gum_is_bl_imm (guint32 insn) #endif -gboolean -gum_stalker_is_run_on_thread_supported (void) -{ - return TRUE; -} - gboolean gum_stalker_run_on_thread (GumStalker * self, GumThreadId thread_id, diff --git a/gum/backend-mips/gumstalker-mips.c b/gum/backend-mips/gumstalker-mips.c index 7cf6e69b78..35c2d7b634 100644 --- a/gum/backend-mips/gumstalker-mips.c +++ b/gum/backend-mips/gumstalker-mips.c @@ -209,12 +209,6 @@ gum_stalker_iterator_put_callout (GumStalkerIterator * self, { } -gboolean -gum_stalker_is_run_on_thread_supported (void) -{ - return FALSE; -} - gboolean gum_stalker_run_on_thread (GumStalker * self, GumThreadId thread_id, diff --git a/gum/backend-x86/gumstalker-x86.c b/gum/backend-x86/gumstalker-x86.c index 6801e39b68..d238fcb94d 100644 --- a/gum/backend-x86/gumstalker-x86.c +++ b/gum/backend-x86/gumstalker-x86.c @@ -6654,12 +6654,6 @@ gum_store_thread_exit_match (GumAddress address, #endif -gboolean -gum_stalker_is_run_on_thread_supported (void) -{ - return TRUE; -} - gboolean gum_stalker_run_on_thread (GumStalker * self, GumThreadId thread_id, diff --git a/gum/gumstalker.c b/gum/gumstalker.c index 306d6e408b..8ea7b407e5 100644 --- a/gum/gumstalker.c +++ b/gum/gumstalker.c @@ -432,11 +432,6 @@ gum_stalker_run_on_thread_sync (GumStalker * self, { RunOnThreadSyncCtx ctx; - if (!gum_stalker_is_run_on_thread_supported ()) - { - return FALSE; - } - if (gum_process_get_current_thread_id () == thread_id) { return gum_stalker_run_on_thread (self, thread_id, func, user_data); diff --git a/gum/gumstalker.h b/gum/gumstalker.h index 2617b8a90c..ff0794dbe5 100644 --- a/gum/gumstalker.h +++ b/gum/gumstalker.h @@ -277,8 +277,6 @@ GUM_API void gum_stalker_observer_switch_callback ( GumStalkerObserver * observer, gpointer from_address, gpointer start_address, gpointer from_insn, gpointer * target); -GUM_API gboolean gum_stalker_is_run_on_thread_supported (void); - GUM_API gboolean gum_stalker_run_on_thread (GumStalker * self, GumThreadId thread_id, GumStalkerRunOnThreadFunc func, gpointer user_data); diff --git a/tests/core/arch-arm/stalker-arm.c b/tests/core/arch-arm/stalker-arm.c index 7d3b2e42b8..32211c5cff 100644 --- a/tests/core/arch-arm/stalker-arm.c +++ b/tests/core/arch-arm/stalker-arm.c @@ -127,7 +127,6 @@ TESTLIST_BEGIN (stalker) TESTENTRY (prefetch) #endif TESTGROUP_BEGIN ("RunOnThread") - TESTENTRY (run_on_thread_support) TESTENTRY (run_on_thread_current) TESTENTRY (run_on_thread_current_sync) TESTENTRY (run_on_thread_other) @@ -3803,12 +3802,6 @@ prefetch_read_blocks (int fd, #endif -TESTCASE (run_on_thread_support) -{ - gboolean supported = gum_stalker_is_run_on_thread_supported (); - g_assert_true (supported); -} - TESTCASE (run_on_thread_current) { GumThreadId thread_id = gum_process_get_current_thread_id (); diff --git a/tests/core/arch-arm64/stalker-arm64.c b/tests/core/arch-arm64/stalker-arm64.c index 196a9b2757..a25c7cbad3 100644 --- a/tests/core/arch-arm64/stalker-arm64.c +++ b/tests/core/arch-arm64/stalker-arm64.c @@ -81,7 +81,6 @@ TESTLIST_BEGIN (stalker) TESTENTRY (observer) #endif TESTGROUP_BEGIN ("RunOnThread") - TESTENTRY (run_on_thread_support) TESTENTRY (run_on_thread_current) TESTENTRY (run_on_thread_current_sync) TESTENTRY (run_on_thread_other) @@ -2421,12 +2420,6 @@ gum_test_stalker_observer_increment_total (GumStalkerObserver * observer) #endif -TESTCASE (run_on_thread_support) -{ - gboolean supported = gum_stalker_is_run_on_thread_supported (); - g_assert_true (supported); -} - TESTCASE (run_on_thread_current) { GumThreadId thread_id = gum_process_get_current_thread_id (); diff --git a/tests/core/arch-x86/stalker-x86.c b/tests/core/arch-x86/stalker-x86.c index 4092cbdbfa..310da79e61 100644 --- a/tests/core/arch-x86/stalker-x86.c +++ b/tests/core/arch-x86/stalker-x86.c @@ -121,7 +121,6 @@ TESTLIST_BEGIN (stalker) TESTGROUP_END () #endif TESTGROUP_BEGIN ("RunOnThread") - TESTENTRY (run_on_thread_support) TESTENTRY (run_on_thread_current) TESTENTRY (run_on_thread_current_sync) TESTENTRY (run_on_thread_other) @@ -3512,12 +3511,6 @@ test_check_followed (void) #endif -TESTCASE (run_on_thread_support) -{ - gboolean supported = gum_stalker_is_run_on_thread_supported (); - g_assert_true (supported); -} - TESTCASE (run_on_thread_current) { GumThreadId thread_id = gum_process_get_current_thread_id ();