From 8e446e732a7b61f95040428f5dff51b741c5f7d5 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Thu, 31 May 2018 11:01:59 +0200 Subject: [PATCH] client.c: Remove unused function set_timeout() The function is not used because most of the timer handling has been moved to coap_run_once(). This change avoids clang to emit a warning due to -Wunused-function. --- examples/client.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/examples/client.c b/examples/client.c index 04f83d8f..ef379c81 100644 --- a/examples/client.c +++ b/examples/client.c @@ -81,12 +81,6 @@ int obs_ms_reset = 0; #define UNUSED_PARAM #endif /* GCC */ -static inline void -set_timeout(coap_tick_t *timer, const unsigned int seconds) { - coap_ticks(timer); - *timer += seconds * COAP_TICKS_PER_SECOND; -} - static int append_to_output(const uint8_t *data, size_t len) { size_t written;