dovecot-2.0-pigeonhole: Removed unused code that caused compile ...

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Fri Jul 16 11:02:31 EEST 2010


details:   http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/29ae07044ec2
changeset: 1333:29ae07044ec2
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Fri Jul 16 10:02:20 2010 +0200
description:
Removed unused code that caused compile failure due to Dovecot API change.

diffstat:

 src/lib-sieve-tool/mail-raw.c              |   5 -----
 src/managesieve/managesieve-capabilities.c |  14 +-------------
 2 files changed, 1 insertions(+), 18 deletions(-)

diffs (72 lines):

diff -r 534ed8c1dea2 -r 29ae07044ec2 src/lib-sieve-tool/mail-raw.c
--- a/src/lib-sieve-tool/mail-raw.c	Thu Jul 15 00:45:37 2010 +0200
+++ b/src/lib-sieve-tool/mail-raw.c	Fri Jul 16 10:02:20 2010 +0200
@@ -54,8 +54,6 @@
 struct mail_raw_user {
 	struct mail_namespace *ns;;
 	struct mail_user *mail_user;
-
-	char *tmp_prefix;
 };
 
 /*
@@ -188,8 +186,6 @@
 	if (mail_storage_create(ruser->ns, "raw", 0, &errstr) < 0)
 		i_fatal("Couldn't create internal raw storage: %s", errstr);
 
-	ruser->tmp_prefix = i_strdup(mail_user_get_temp_prefix(ruser->mail_user));
-
 	return ruser;
 }
 
@@ -201,7 +197,6 @@
 
 	mail_user_unref(&ruser->mail_user);
 
-	i_free(ruser->tmp_prefix);
 	i_free(ruser);	
 }
 
diff -r 534ed8c1dea2 -r 29ae07044ec2 src/managesieve/managesieve-capabilities.c
--- a/src/managesieve/managesieve-capabilities.c	Thu Jul 15 00:45:37 2010 +0200
+++ b/src/managesieve/managesieve-capabilities.c	Fri Jul 16 10:02:20 2010 +0200
@@ -29,7 +29,7 @@
 
 #undef DEF
 #define DEF(type, name) \
-	{ type, #name, offsetof(struct login_settings, name), NULL }
+	{ type, #name, offsetof(struct plugin_settings, name), NULL }
 
 static const struct setting_define plugin_setting_defines[] = {
 	{ SET_STRLIST, "plugin", offsetof(struct plugin_settings, plugin_envs), NULL },
@@ -55,8 +55,6 @@
 static const struct setting_parser_info **plugin_set_roots = 
 	default_plugin_set_roots;
 
-static struct master_service_settings_cache *set_cache;
-
 static struct plugin_settings *plugin_settings_read(void)
 {
 	const char *error;
@@ -86,12 +84,6 @@
 	return NULL;
 }
 
-static void plugin_settings_deinit(void)
-{
-	if (set_cache != NULL)
-		master_service_settings_cache_deinit(&set_cache);
-}
-
 /*
  * Sieve environment
  */
@@ -141,8 +133,4 @@
 	else
 		printf("SIEVE: %s, NOTIFY: %s\n", sieve_get_capabilities(svinst, NULL),
 			sieve_get_capabilities(svinst, "notify"));
-
-	/* Deinitialize */
-
-	plugin_settings_deinit();
 }


More information about the dovecot-cvs mailing list