talons

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

commit da970984adaeb7b5c31dd5b025bd4d3c0ca455b1
parent 4dc91617c4114b78825c51069c923d410b9dc16b
Author: Ricardo Mones <ricardo@mones.org>
Date:   Sat,  6 Nov 2021 00:51:04 +0100

Remove unused function

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

Diffstat:
Msrc/common/utils.c | 15+--------------
Msrc/common/utils.h | 3+--
2 files changed, 2 insertions(+), 16 deletions(-)

diff --git 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 @@ -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,