From 7f63d1e048974fe4a893bfc4eca5b758ce46d44e Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Thu, 23 Mar 2023 17:48:24 +0100 Subject: [PATCH] Remove unused thread_select_any() function --- src/emu/thread.c | 25 ------------------------- src/emu/thread.h | 1 - 2 files changed, 26 deletions(-) diff --git a/src/emu/thread.c b/src/emu/thread.c index c046c6c..1fdeff3 100644 --- a/src/emu/thread.c +++ b/src/emu/thread.c @@ -374,31 +374,6 @@ thread_select_running(struct mux *mux, return 0; } -int -thread_select_any(struct mux *mux, - struct value value, - struct mux_input **input) -{ - if (value.type == VALUE_NULL) { - *input = NULL; - return 0; - } - - if (value.type != VALUE_INT64) { - err("expecting NULL or INT64 channel value"); - return -1; - } - - if (mux->ninputs != 1) { - err("mux doesn't have one input but %d", mux->ninputs); - return -1; - } - - *input = mux_get_input(mux, 0); - - return 0; -} - int thread_set_cpu(struct thread *th, struct cpu *cpu) { diff --git a/src/emu/thread.h b/src/emu/thread.h index 2cfb78d..281bdd6 100644 --- a/src/emu/thread.h +++ b/src/emu/thread.h @@ -88,7 +88,6 @@ USE_RET int thread_get_tid(struct thread *thread); USE_RET int thread_connect(struct thread *th, struct bay *bay, struct recorder *rec); USE_RET int thread_select_active(struct mux *mux, struct value value, struct mux_input **input); USE_RET int thread_select_running(struct mux *mux, struct value value, struct mux_input **input); -USE_RET int thread_select_any(struct mux *mux, struct value value, struct mux_input **input); USE_RET int thread_create_pcf_types(struct pcf *pcf); USE_RET struct pcf_type *thread_get_affinity_pcf_type(struct pcf *pcf);