From ad1cf04ea7ea3dcec3dca03accf2c853a27cd625 Mon Sep 17 00:00:00 2001 From: "Kamal Mostafa, KA6MAL" Date: Sun, 27 Feb 2011 22:42:17 +0000 Subject: [PATCH] source warnings cleanup: #if-0 out a few unused routines git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3063 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- aor/ar7030p.c | 4 ++++ flexradio/dttsp.c | 5 ----- pcr/pcr.c | 4 ++++ yaesu/vx1700.c | 2 ++ 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/aor/ar7030p.c b/aor/ar7030p.c index 67021585e..03aa455fb 100644 --- a/aor/ar7030p.c +++ b/aor/ar7030p.c @@ -223,6 +223,7 @@ static struct ext_list *alloc_init_ext( const struct confparams *cfp ) return elp; } +#if 0 /* unused; re-enabled as needed. */ static struct ext_list *find_ext( struct ext_list *elp, token_t token ) { int i; @@ -237,6 +238,7 @@ static struct ext_list *find_ext( struct ext_list *elp, token_t token ) return NULL; } +#endif /* unused */ static int ar7030p_init( RIG *rig ) { @@ -662,6 +664,7 @@ static int ar7030p_get_mode( RIG * rig, vfo_t vfo, rmode_t * mode, * /param id Pointer to channel ident string (14 chars) * */ +#if 0 /* unused; re-enabled as needed. */ static void ar7030p_get_memory( RIG * rig, const unsigned int chan, double *const freq, unsigned char *const mode, unsigned char *const filt, unsigned char *const pbs, @@ -766,6 +769,7 @@ static void ar7030p_get_memory( RIG * rig, const unsigned int chan, } } +#endif /* unused */ /* * /brief Set receiver levels diff --git a/flexradio/dttsp.c b/flexradio/dttsp.c index d2fda0d1f..17a32721b 100644 --- a/flexradio/dttsp.c +++ b/flexradio/dttsp.c @@ -100,11 +100,6 @@ static int dttsp_ipc_cleanup(RIG *rig); static int dttsp_ipc_open(RIG *rig); static int dttsp_ipc_close(RIG *rig); -static int dttsp_udp_init(RIG *rig); -static int dttsp_udp_cleanup(RIG *rig); -static int dttsp_udp_open(RIG *rig); -static int dttsp_udp_close(RIG *rig); - static int dttsp_set_freq(RIG *rig, vfo_t vfo, freq_t freq); static int dttsp_get_freq(RIG *rig, vfo_t vfo, freq_t *freq); static int dttsp_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width); diff --git a/pcr/pcr.c b/pcr/pcr.c index 9fc6425d8..fe9ba3560 100644 --- a/pcr/pcr.c +++ b/pcr/pcr.c @@ -144,7 +144,9 @@ static int pcr_set_bfo_shift(RIG *rig, vfo_t vfo, int level); // J4Axx static int pcr_set_vsc(RIG *rig, vfo_t vfo, int level); // J50xx static int pcr_set_dsp(RIG *rig, vfo_t vfo, int level); // J80xx static int pcr_set_dsp_state(RIG *rig, vfo_t vfo, int level); // J8100=off J8101=on +#if 0 /* unused; re-enabled as needed. */ static int pcr_set_dsp_noise_reducer(RIG *rig, vfo_t vfo, int level); // J82xx +#endif /* unused */ static int pcr_set_dsp_auto_notch(RIG *rig, vfo_t vfo, int level); // J83xx static int pcr_check_ok(RIG * rig); @@ -1495,6 +1497,7 @@ pcr_set_dsp_state(RIG * rig, vfo_t vfo, int level) * the level of NR set by values 0x01 to 0x10 (1 to 16 inclusive) */ +#if 0 /* unused; re-enabled as needed. */ int pcr_set_dsp_noise_reducer(RIG * rig, vfo_t vfo, int level) { @@ -1503,6 +1506,7 @@ pcr_set_dsp_noise_reducer(RIG * rig, vfo_t vfo, int level) return -RIG_ENAVAIL; return pcr_set_level_cmd(rig, "J82", level); } +#endif /* unused */ /* * pcr_set_dsp_auto_notch(RIG *rig, vfo_t vfo, int level); diff --git a/yaesu/vx1700.c b/yaesu/vx1700.c index 48805924a..90b8f8e73 100644 --- a/yaesu/vx1700.c +++ b/yaesu/vx1700.c @@ -370,6 +370,7 @@ static inline int vx1700_read_op_data_raw(RIG *rig, unsigned char reply[]){ reply, VX1700_OP_DATA_LENGTH); } +#if 0 /* unused; re-enabled as needed. */ static int vx1700_read_vfo_data(RIG *rig, unsigned char *hwmode, freq_t *rx_freq, freq_t *tx_freq){ int ret; @@ -381,6 +382,7 @@ static int vx1700_read_vfo_data(RIG *rig, unsigned char *hwmode, if (tx_freq != NULL) *tx_freq = vx1700_read_freq_from_buf(reply + 10); return RIG_OK; } +#endif /* unused */ static int vx1700_read_op_data(RIG *rig, unsigned char *hwmode, freq_t *rx_freq, freq_t *tx_freq){