aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-08 09:06:27 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-08 09:06:27 +0100
commit8ee3c686bae135d6b20de1ed484600c1a637048c (patch)
treed4b3e3fc247202aca44d683facea2ffea73199d0 /src/libutil
parent2e5dae850516f923cda3b26492c697a676aa3cdc (diff)
downloadrspamd-8ee3c686bae135d6b20de1ed484600c1a637048c.tar.gz
rspamd-8ee3c686bae135d6b20de1ed484600c1a637048c.zip
[Minor] Remove redundant function
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/str_util.c24
-rw-r--r--src/libutil/str_util.h5
2 files changed, 0 insertions, 29 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c
index 595eca2f6..e1f0d5369 100644
--- a/src/libutil/str_util.c
+++ b/src/libutil/str_util.c
@@ -386,30 +386,6 @@ rspamd_strlcpy_tolower (gchar *dst, const gchar *src, gsize siz)
return (s - src - 1); /* count does not include NUL */
}
-
-/*
- * Find the first occurrence of find in s, ignore case.
- */
-gchar *
-rspamd_strncasestr (const gchar *s, const gchar *find, gint len)
-{
- gchar c, sc;
- gsize mlen;
-
- if ((c = *find++) != 0) {
- c = g_ascii_tolower (c);
- mlen = strlen (find);
- do {
- do {
- if ((sc = *s++) == 0 || len-- == 0)
- return (NULL);
- } while (g_ascii_tolower (sc) != c);
- } while (g_ascii_strncasecmp (s, find, mlen) != 0);
- s--;
- }
- return ((gchar *)s);
-}
-
/*
* Try to convert string of length to long
*/
diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h
index 2a213d738..2fec42987 100644
--- a/src/libutil/str_util.h
+++ b/src/libutil/str_util.h
@@ -86,11 +86,6 @@ gsize rspamd_strlcpy (gchar *dst, const gchar *src, gsize siz);
gsize rspamd_strlcpy_tolower (gchar *dst, const gchar *src, gsize siz);
/*
- * Find string find in string s ignoring case
- */
-gchar * rspamd_strncasestr (const gchar *s, const gchar *find, gint len);
-
-/*
* Try to convert string of length to long
*/
gboolean rspamd_strtol (const gchar *s, gsize len, glong *value);