talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 102ceb8bd99993bee542af5e7509c8401017a5db
parent a18aab16d768dbbd8aa506a959e293297a9c9c5e
Author: Ricardo Mones <ricardo@mones.org>
Date:   Wed, 12 Sep 2018 16:59:24 +0200

Remove dead code

Diffstat:
Msrc/common/utils.c | 13-------------
Msrc/common/utils.h | 2--
Msrc/imap.c | 4----
3 files changed, 0 insertions(+), 19 deletions(-)

diff --git a/src/common/utils.c b/src/common/utils.c @@ -155,19 +155,6 @@ guint str_case_hash(gconstpointer key) return h; } -void ptr_array_free_strings(GPtrArray *array) -{ - gint i; - gchar *str; - - cm_return_if_fail(array != NULL); - - for (i = 0; i < array->len; i++) { - str = g_ptr_array_index(array, i); - g_free(str); - } -} - gint to_number(const gchar *nstr) { register const gchar *p; diff --git a/src/common/utils.h b/src/common/utils.h @@ -268,8 +268,6 @@ gint str_case_equal (gconstpointer v, gconstpointer v2); guint str_case_hash (gconstpointer key); -void ptr_array_free_strings (GPtrArray *array); - /* number-string conversion */ gint to_number (const gchar *nstr); gchar *itos_buf (gchar *nstr, diff --git a/src/imap.c b/src/imap.c @@ -3210,19 +3210,15 @@ static FolderItem *imap_create_folder(Folder *folder, FolderItem *parent, strtailchomp(new_name, '/'); if (strcasecmp(dirpath, "INBOX") != 0) { - GPtrArray *argbuf; int r; clist * lep_list; - argbuf = g_ptr_array_new(); r = imap_threaded_list(folder, "", imap_path, &lep_list); if (r != MAILIMAP_NO_ERROR) { imap_handle_error(SESSION(session), NULL, r); log_warning(LOG_PROTOCOL, _("can't create mailbox: LIST failed\n")); g_free(imap_path); g_free(dirpath); - ptr_array_free_strings(argbuf); - g_ptr_array_free(argbuf, TRUE); return NULL; }