clean up unused variables/functions

Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
Erik Boasson 2018-08-03 09:29:01 +02:00
parent 28c2dd2198
commit 5c0bdddc2a
3 changed files with 7 additions and 4 deletions

View file

@ -98,7 +98,6 @@ dds_topic_status_cb(
{ {
dds_topic *topic; dds_topic *topic;
dds__retcode_t rc; dds__retcode_t rc;
void *metrics = NULL;
DDS_REPORT_STACK(); DDS_REPORT_STACK();

View file

@ -121,7 +121,10 @@ DUPF(networkAddresses);
DU(ipv4); DU(ipv4);
DUPF(allow_multicast); DUPF(allow_multicast);
DUPF(boolean); DUPF(boolean);
DUPF(boolean_default); DU(boolean_default);
#if 0
PF(boolean_default);
#endif
DUPF(negated_boolean); DUPF(negated_boolean);
DUPF(string); DUPF(string);
DU(tracingOutputFileName); DU(tracingOutputFileName);
@ -1312,6 +1315,7 @@ static int uf_boolean_default (struct cfgst *cfgst, void *parent, struct cfgelem
return 1; return 1;
} }
#if 0
static void pf_boolean_default (struct cfgst *cfgst, void *parent, struct cfgelem const * const cfgelem, int is_default) static void pf_boolean_default (struct cfgst *cfgst, void *parent, struct cfgelem const * const cfgelem, int is_default)
{ {
enum besmode *p = cfg_address (cfgst, parent, cfgelem); enum besmode *p = cfg_address (cfgst, parent, cfgelem);
@ -1324,6 +1328,7 @@ static void pf_boolean_default (struct cfgst *cfgst, void *parent, struct cfgele
} }
cfg_log (cfgst, "%s%s", str, is_default ? " [def]" : ""); cfg_log (cfgst, "%s%s", str, is_default ? " [def]" : "");
} }
#endif
static int uf_logcat(struct cfgst *cfgst, UNUSED_ARG(void *parent), UNUSED_ARG(struct cfgelem const * const cfgelem), UNUSED_ARG(int first), const char *value) static int uf_logcat(struct cfgst *cfgst, UNUSED_ARG(void *parent), UNUSED_ARG(struct cfgelem const * const cfgelem), UNUSED_ARG(int first), const char *value)
{ {

View file

@ -47,7 +47,6 @@ static void CtrlHandler (int fdwCtrlType)
int main (int argc, char **argv) int main (int argc, char **argv)
{ {
int result = EXIT_SUCCESS;
uint32_t payloadSize = 8192; uint32_t payloadSize = 8192;
unsigned int burstInterval = 0; unsigned int burstInterval = 0;
unsigned int burstSize = 1; unsigned int burstSize = 1;
@ -101,7 +100,7 @@ int main (int argc, char **argv)
/* Cleanup */ /* Cleanup */
finalize_dds(participant, writer, sample); finalize_dds(participant, writer, sample);
return EXIT_SUCCESS;
} }
static int parse_args( static int parse_args(