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.
This commit is contained in:
Olaf Bergmann committed 2018-05-31 11:12:01 +02:00
1 parent 282fd96fc3
commit 8e446e732a
1 file changed
-6
-6
View File
@@ -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;