From 788fa224a56805cd9b6cab2f1c5c0fd3a90249b1 Mon Sep 17 00:00:00 2001 From: iphydf Date: Sat, 4 Aug 2018 11:44:14 +0000 Subject: [PATCH] Remove unused `m_callback_log` function. The logger callback can only be set once at the beginning, because it requires user data coming from `Tox_Options`. --- toxcore/Messenger.c | 5 ----- toxcore/Messenger.h | 4 ---- 2 files changed, 9 deletions(-) diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index 7ff2c2b3..ac25d669 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c @@ -842,11 +842,6 @@ static void set_friend_typing(const Messenger *m, int32_t friendnumber, uint8_t m->friendlist[friendnumber].is_typing = is_typing; } -void m_callback_log(Messenger *m, logger_cb *function, void *context, void *userdata) -{ - logger_callback_log(m->log, function, context, userdata); -} - /* Set the function that will be executed when a friend request is received. */ void m_callback_friendrequest(Messenger *m, m_friend_request_cb *function) { diff --git a/toxcore/Messenger.h b/toxcore/Messenger.h index 548d8654..8cab9801 100644 --- a/toxcore/Messenger.h +++ b/toxcore/Messenger.h @@ -481,10 +481,6 @@ int m_set_usertyping(Messenger *m, int32_t friendnumber, uint8_t is_typing); */ int m_get_istyping(const Messenger *m, int32_t friendnumber); -/* Set the logger callback. - */ -void m_callback_log(Messenger *m, logger_cb *function, void *context, void *userdata); - /* Set the function that will be executed when a friend request is received. * Function format is function(uint8_t * public_key, uint8_t * data, size_t length) */