commit cee37b8da30735cb8fcd8dd5b74a3aed599980d9
parent 623a8e1505a8cd04e178ebc46b5c17c81f5eebff
Author: Ricardo Mones <ricardo@mones.org>
Date: Wed, 12 Sep 2018 16:59:24 +0200
Remove dead code
Diffstat:
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;
}