[Commits] [SCM] claws branch, master, updated. 3.17.0-53-g102ceb8

mones at claws-mail.org mones at claws-mail.org
Wed Sep 12 16:59:32 CEST 2018


The branch, master has been updated
       via  102ceb8bd99993bee542af5e7509c8401017a5db (commit)
      from  a18aab16d768dbbd8aa506a959e293297a9c9c5e (commit)

Summary of changes:
 src/common/utils.c |   13 -------------
 src/common/utils.h |    2 --
 src/imap.c         |    4 ----
 3 files changed, 19 deletions(-)


- Log -----------------------------------------------------------------
commit 102ceb8bd99993bee542af5e7509c8401017a5db
Author: Ricardo Mones <ricardo at mones.org>
Date:   Wed Sep 12 16:59:24 2018 +0200

    Remove dead code

diff --git a/src/common/utils.c b/src/common/utils.c
index bf20ec3..33eb31d 100644
--- 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
index c09032f..3573d40 100644
--- 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
index 23232f8..4982b61 100644
--- 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;
 		}
 		

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list