From 448cb0a00f29a7f0655e318e018b0d802fab95e9 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 1 Jan 2015 18:15:21 +0000 Subject: [PATCH] daemon.c: Remove unused daemon_clear_flag(). Found by cppcheck. --- daemon.c | 12 ------------ daemon.h | 1 - 2 files changed, 13 deletions(-) diff --git a/daemon.c b/daemon.c index 8dd4d37e..e5c0f4c2 100644 --- a/daemon.c +++ b/daemon.c @@ -122,18 +122,6 @@ void daemon_set_flag(unsigned flag) me->flags |= flag; } -/** - * Clear one of the daemon config flags. - * - * \param flag The flag to clear. - * - * \sa \ref daemon_flags. - */ -void daemon_clear_flag(unsigned flag) -{ - me->flags &= ~flag; -} - static bool daemon_test_flag(unsigned flag) { return me->flags & flag; diff --git a/daemon.h b/daemon.h index df9de6a3..42ff5ce1 100644 --- a/daemon.h +++ b/daemon.h @@ -11,7 +11,6 @@ time_t daemon_get_uptime(const struct timeval *current_time); __malloc char *daemon_get_uptime_str(const struct timeval *current_time); void daemon_set_logfile(char *logfile_name); void daemon_set_flag(unsigned flag); -void daemon_clear_flag(unsigned flag); void daemon_set_loglevel(char *loglevel); void daemon_set_default_log_colors(void); void daemon_set_log_color_or_die(char const *arg); -- 2.39.5