dovecot-2.0: lib-storage: Removed unnecessary NULL checks.

dovecot at dovecot.org dovecot at dovecot.org
Fri Jul 29 00:04:31 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/94c6e1cd58f1
changeset: 12872:94c6e1cd58f1
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jul 29 00:04:20 2011 +0300
description:
lib-storage: Removed unnecessary NULL checks.

diffstat:

 src/lib-storage/index/index-storage.c |  3 +--
 src/lib-storage/mail-namespace.c      |  8 +++-----
 2 files changed, 4 insertions(+), 7 deletions(-)

diffs (31 lines):

diff -r 0e64f0217feb -r 94c6e1cd58f1 src/lib-storage/index/index-storage.c
--- a/src/lib-storage/index/index-storage.c	Thu Jul 28 17:46:37 2011 +0300
+++ b/src/lib-storage/index/index-storage.c	Fri Jul 29 00:04:20 2011 +0300
@@ -204,8 +204,7 @@
 	box->opened = TRUE;
 
 	index_thread_mailbox_opened(box);
-	if (hook_mailbox_opened != NULL)
-		hook_mailbox_opened(box);
+	hook_mailbox_opened(box);
 
 	if ((box->flags & MAILBOX_FLAG_OPEN_DELETED) == 0) {
 		if (mail_index_is_deleted(box->index)) {
diff -r 0e64f0217feb -r 94c6e1cd58f1 src/lib-storage/mail-namespace.c
--- a/src/lib-storage/mail-namespace.c	Thu Jul 28 17:46:37 2011 +0300
+++ b/src/lib-storage/mail-namespace.c	Fri Jul 29 00:04:20 2011 +0300
@@ -400,11 +400,9 @@
 	}
 	user->namespaces = ns;
 
-	if (hook_mail_namespaces_created != NULL) {
-		T_BEGIN {
-			hook_mail_namespaces_created(ns);
-		} T_END;
-	}
+	T_BEGIN {
+		hook_mail_namespaces_created(ns);
+	} T_END;
 	return 0;
 }
 


More information about the dovecot-cvs mailing list