[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-350-gda970984a

mones at claws-mail.org mones at claws-mail.org
Sat Nov 6 00:09:33 UTC 2021


The branch, gtk3 has been updated
       via  da970984adaeb7b5c31dd5b025bd4d3c0ca455b1 (commit)
      from  4dc91617c4114b78825c51069c923d410b9dc16b (commit)

Summary of changes:
 src/common/utils.c | 15 +--------------
 src/common/utils.h |  3 +--
 2 files changed, 2 insertions(+), 16 deletions(-)


- Log -----------------------------------------------------------------
commit da970984adaeb7b5c31dd5b025bd4d3c0ca455b1
Author: Ricardo Mones <ricardo at mones.org>
Date:   Sat Nov 6 00:51:04 2021 +0100

    Remove unused function
    
    Introduced in b0c27bffcd, calls removed in 59712bbc18, dead code since then.

diff --git a/src/common/utils.c b/src/common/utils.c
index f741c62d5..47c56cbb7 100644
--- a/src/common/utils.c
+++ b/src/common/utils.c
@@ -1,6 +1,6 @@
 /*
  * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2020 The Claws Mail Team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2021 The Claws Mail Team and Hiroyuki Yamamoto
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -3477,19 +3477,6 @@ void g_auto_pointer_free(GAuto *auto_ptr)
 	g_free(ptr);
 }
 
-void replace_returns(gchar *str)
-{
-	if (!str)
-		return;
-
-	while (strstr(str, "\n")) {
-		*strstr(str, "\n") = ' ';
-	}
-	while (strstr(str, "\r")) {
-		*strstr(str, "\r") = ' ';
-	}
-}
-
 /* get_uri_part() - retrieves a URI starting from scanpos.
 		    Returns TRUE if successful */
 gboolean get_uri_part(const gchar *start, const gchar *scanpos,
diff --git a/src/common/utils.h b/src/common/utils.h
index 7b8ed25ac..98f771291 100644
--- a/src/common/utils.h
+++ b/src/common/utils.h
@@ -1,6 +1,6 @@
 /*
  * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2020 The Claws Mail Team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2021 The Claws Mail Team and Hiroyuki Yamamoto
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -497,7 +497,6 @@ GAuto *g_auto_pointer_new_with_free	(gpointer p,
 gpointer g_auto_pointer_get_ptr		(GAuto *auto_ptr);
 GAuto *g_auto_pointer_copy		(GAuto *auto_ptr);
 void g_auto_pointer_free		(GAuto *auto_ptr);
-void replace_returns			(gchar *str);
 gboolean get_uri_part	(const gchar *start,
 		    	 const gchar *scanpos,
 		     	 const gchar **bp,

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list