From 1c90947f82ff95ac689152d6e044b607cbcd4274 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Mon, 20 Feb 2023 14:43:34 +0100 Subject: [PATCH] Remove unused select function from mux unit test --- test/unit/mux.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/test/unit/mux.c b/test/unit/mux.c index 4dbc170..b1372ed 100644 --- a/test/unit/mux.c +++ b/test/unit/mux.c @@ -3,42 +3,6 @@ #define N 10 -//static int -//select_active_thread(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\n"); -// return -1; -// } -// -// enum thread_state state = (enum thread_state) value->i; -// -// if (mux->ninputs != 1) { -// err("expecting NULL or INT64 channel value\n"); -// return -1; -// } -// -// switch (state) { -// case TH_ST_RUNNING: -// case TH_ST_COOLING: -// case TH_ST_WARMING: -// *input = only_input; -// break; -// case TH_ST_PAUSED: -// *input = NULL; -// break; -// } -// -// return 0; -//} - static void check_output(struct mux *mux, struct value expected) {