From 2af7db2dfa9a685e9a93a99adb69f7bea4568907 Mon Sep 17 00:00:00 2001 From: Will Storey Date: Sat, 14 Sep 2019 11:00:35 -0700 Subject: [PATCH 1/2] Remove unused function --- src/core/misc.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/core/misc.c b/src/core/misc.c index d612f587..c959ad91 100644 --- a/src/core/misc.c +++ b/src/core/misc.c @@ -270,11 +270,6 @@ char *gslist_to_string(GSList *list, const char *delimiter) return ret; } -void hash_save_key(char *key, void *value, GSList **list) -{ - *list = g_slist_append(*list, key); -} - /* remove all the options from the optlist hash table that are valid for the * command cmd */ GList *optlist_remove_known(const char *cmd, GHashTable *optlist) From e4d34380e50013b3b209720be14c0761d449bc4d Mon Sep 17 00:00:00 2001 From: Will Storey Date: Sat, 14 Sep 2019 11:03:36 -0700 Subject: [PATCH 2/2] Mark unused function deprecated --- src/core/misc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/misc.h b/src/core/misc.h index 9e06c707..65534cdc 100644 --- a/src/core/misc.h +++ b/src/core/misc.h @@ -50,7 +50,7 @@ int match_wildcards(const char *mask, const char *data); /* octal <-> decimal conversions */ int octal2dec(int octal); -int dec2octal(int decimal); +int dec2octal(int decimal) G_GNUC_DEPRECATED; /* Get time in human readable form with localtime() + asctime() */ char *my_asctime(time_t t);