aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-06-16 13:40:47 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-06-16 13:40:47 +0100
commit6d1ccd4aeec5509c9be5d17da376aa3cbe282969 (patch)
tree371050faa0f153a49bcaeb4d9857f87b1ce2f68c /src
parent13e254677bf8ee6aab56e5ac100843cfdfd409f9 (diff)
downloadrspamd-6d1ccd4aeec5509c9be5d17da376aa3cbe282969.tar.gz
rspamd-6d1ccd4aeec5509c9be5d17da376aa3cbe282969.zip
[Minor] Remove unused function
Diffstat (limited to 'src')
-rw-r--r--src/libutil/mem_pool.c17
-rw-r--r--src/libutil/mem_pool.h13
2 files changed, 0 insertions, 30 deletions
diff --git a/src/libutil/mem_pool.c b/src/libutil/mem_pool.c
index d58be5e08..235fc8421 100644
--- a/src/libutil/mem_pool.c
+++ b/src/libutil/mem_pool.c
@@ -621,23 +621,6 @@ rspamd_mempool_strdup_ (rspamd_mempool_t * pool, const gchar *src, const gchar *
}
gchar *
-rspamd_mempool_fstrdup_ (rspamd_mempool_t * pool, const struct f_str_s *src,
- const gchar *loc)
-{
- gchar *newstr;
-
- if (src == NULL) {
- return NULL;
- }
-
- newstr = rspamd_mempool_alloc_ (pool, src->len + 1, MIN_MEM_ALIGNMENT, loc);
- memcpy (newstr, src->str, src->len);
- newstr[src->len] = '\0';
-
- return newstr;
-}
-
-gchar *
rspamd_mempool_ftokdup_ (rspamd_mempool_t *pool, const rspamd_ftok_t *src,
const gchar *loc)
{
diff --git a/src/libutil/mem_pool.h b/src/libutil/mem_pool.h
index 72eb1740d..986db9e00 100644
--- a/src/libutil/mem_pool.h
+++ b/src/libutil/mem_pool.h
@@ -217,19 +217,6 @@ gchar *rspamd_mempool_strdup_ (rspamd_mempool_t *pool, const gchar *src, const g
#define rspamd_mempool_strdup(pool, src) \
rspamd_mempool_strdup_ ((pool), (src), (G_STRLOC))
-/**
- * Make a copy of fixed string in pool as null terminated string
- * @param pool memory pool object
- * @param src source string
- * @return pointer to newly created string that is copy of src
- */
-gchar *rspamd_mempool_fstrdup_ (rspamd_mempool_t *pool,
- const struct f_str_s *src,
- const gchar *loc)
- RSPAMD_ATTR_ALLOC_ALIGN(MIN_MEM_ALIGNMENT);
-#define rspamd_mempool_fstrdup(pool, src) \
- rspamd_mempool_fstrdup_ ((pool), (src), G_STRLOC)
-
struct f_str_tok;
/**