From 1fe7a9a78097296bc21bace93db3d2c7db572bb1 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sun, 28 Nov 2021 16:39:18 -0600 Subject: [PATCH] Remove dead code in tci1x.c Note that tci1x is not functional at all yet --- rigs/dummy/tci1x.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/rigs/dummy/tci1x.c b/rigs/dummy/tci1x.c index fb9d2d233..150607bac 100644 --- a/rigs/dummy/tci1x.c +++ b/rigs/dummy/tci1x.c @@ -840,26 +840,6 @@ static int tci1x_cleanup(RIG *rig) rig->state.priv = NULL; - // we really don't need to free this up as it's only done once - // was causing problem when cleanup was followed by rig_open - // model_tci1x was not getting refilled - // if we can figure out that one we can re-enable this -#if 0 - int i; - - for (i = 0; modeMap[i].mode_hamlib != 0; ++i) - { - if (modeMap[i].mode_tci1x) - { - free(modeMap[i].mode_tci1x); - modeMap[i].mode_tci1x = NULL; - modeMap[i].mode_hamlib = 0; - } - - } - -#endif - RETURNFUNC(RIG_OK); }