dovecot-2.0: Removed some unused FIXME code.

dovecot at dovecot.org dovecot at dovecot.org
Mon Oct 12 20:53:53 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/499f5575d503
changeset: 10038:499f5575d503
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Oct 12 12:54:37 2009 -0400
description:
Removed some unused FIXME code.

diffstat:

2 files changed, 3 insertions(+), 11 deletions(-)
src/lib-index/mail-index-transaction-update.c |    5 +++--
src/login-common/main.c                       |    9 ---------

diffs (41 lines):

diff -r 45cdc5539c93 -r 499f5575d503 src/lib-index/mail-index-transaction-update.c
--- a/src/lib-index/mail-index-transaction-update.c	Mon Oct 12 12:51:06 2009 -0400
+++ b/src/lib-index/mail-index-transaction-update.c	Mon Oct 12 12:54:37 2009 -0400
@@ -929,8 +929,9 @@ int mail_index_atomic_inc_ext(struct mai
 		  seq <= t->last_new_seq));
 	i_assert(ext_id < array_count(&t->view->index->extensions));
 	/* currently non-external transactions can be applied multiple times,
-	   causing multiple increments. */
-	//FIXME:i_assert((t->flags & MAIL_INDEX_TRANSACTION_FLAG_EXTERNAL) != 0);
+	   causing multiple increments. FIXME: we need this now and it doesn't
+	   actually seem to be a real problem at least right now - why? */
+	/*i_assert((t->flags & MAIL_INDEX_TRANSACTION_FLAG_EXTERNAL) != 0);*/
 
 	t->log_ext_updates = TRUE;
 	if (!array_is_created(&t->ext_rec_atomics))
diff -r 45cdc5539c93 -r 499f5575d503 src/login-common/main.c
--- a/src/login-common/main.c	Mon Oct 12 12:51:06 2009 -0400
+++ b/src/login-common/main.c	Mon Oct 12 12:54:37 2009 -0400
@@ -167,8 +167,6 @@ int main(int argc, char *argv[], char *e
 	pool_t set_pool;
 	int c;
 
-	//FIXME:is_inetd = getenv("DOVECOT_MASTER") == NULL;
-
 	master_service = master_service_init(login_process_name,
 					MASTER_SERVICE_FLAG_KEEP_CONFIG_OPEN,
 					argc, argv);
@@ -192,13 +190,6 @@ int main(int argc, char *argv[], char *e
 		}
 	}
 
-#if 0
-	if (is_inetd) {
-		/* running from inetd. create master process before
-		   dropping privileges. */
-		master_fd = master_connect(t_strcut(login_process_name, '-'));
-	}
-#endif
 	login_process_preinit();
 
 	process_title_init(argv, envp);


More information about the dovecot-cvs mailing list