aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-02-22 21:22:51 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-02-22 21:22:51 +0000
commitf453b63d799fad7b63ab7f6ca60d6d7aacd08e49 (patch)
tree6bfad6b8316493b8f2ed2153055b62c59c0753d0
parent0501e88b535dea34c093aea4c63e04cc4a148c18 (diff)
downloadrspamd-f453b63d799fad7b63ab7f6ca60d6d7aacd08e49.tar.gz
rspamd-f453b63d799fad7b63ab7f6ca60d6d7aacd08e49.zip
[Minor] Remove unused
-rw-r--r--src/libutil/str_util.c23
-rw-r--r--src/libutil/str_util.h9
2 files changed, 0 insertions, 32 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c
index 22d63c302..69b17fb4f 100644
--- a/src/libutil/str_util.c
+++ b/src/libutil/str_util.c
@@ -364,29 +364,6 @@ rspamd_strlcpy (gchar *dst, const gchar *src, gsize siz)
return (d - dst);
}
-gsize
-rspamd_strlcpy_tolower (gchar *dst, const gchar *src, gsize siz)
-{
- gchar *d = dst;
- const gchar *s = src;
- gsize n = siz;
-
- /* Copy as many bytes as will fit */
- if (n != 0) {
- while (--n != 0) {
- if ((*d++ = g_ascii_tolower (*s++)) == '\0') {
- break;
- }
- }
- }
-
- if (n == 0 && siz != 0) {
- *d = '\0';
- }
-
- return (s - src - 1); /* count does not include NUL */
-}
-
/*
* Try to convert string of length to long
*/
diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h
index 3c2af2fb3..ab97555ac 100644
--- a/src/libutil/str_util.h
+++ b/src/libutil/str_util.h
@@ -76,15 +76,6 @@ gboolean rspamd_gstring_icase_equal (gconstpointer v, gconstpointer v2);
*/
gsize rspamd_strlcpy (gchar *dst, const gchar *src, gsize siz);
-/**
- * Lowercase strlcpy variant
- * @param dst
- * @param src
- * @param siz
- * @return
- */
-gsize rspamd_strlcpy_tolower (gchar *dst, const gchar *src, gsize siz);
-
/*
* Try to convert string of length to long
*/