dovecot-2.2: lib-fts: fts-lowercase can now use the default dest...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 2 22:07:17 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/932a0a83514b
changeset: 18814:932a0a83514b
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jun 03 00:43:51 2015 +0300
description:
lib-fts: fts-lowercase can now use the default destroy function.

diffstat:

 src/lib-fts/fts-filter-lowercase.c |  9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diffs (26 lines):

diff -r 6a710924df27 -r 932a0a83514b src/lib-fts/fts-filter-lowercase.c
--- a/src/lib-fts/fts-filter-lowercase.c	Wed Jun 03 00:43:28 2015 +0300
+++ b/src/lib-fts/fts-filter-lowercase.c	Wed Jun 03 00:43:51 2015 +0300
@@ -9,13 +9,6 @@
 #  include "fts-icu.h"
 #endif
 
-static void
-fts_filter_lowercase_destroy(struct fts_filter *filter)
-{
-	str_free(&filter->token);
-	i_free(filter);
-}
-
 static int
 fts_filter_lowercase_create(const struct fts_language *lang ATTR_UNUSED,
 			    const char *const *settings,
@@ -54,7 +47,7 @@
 static const struct fts_filter_vfuncs lowercase_filter_vfuncs = {
 	fts_filter_lowercase_create,
 	fts_filter_lowercase_filter,
-	fts_filter_lowercase_destroy
+	NULL
 };
 
 static const struct fts_filter fts_filter_lowercase_real = {


More information about the dovecot-cvs mailing list