[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-storage.c, 1.158, 1.159

tss at dovecot.org tss at dovecot.org
Fri Mar 30 17:12:53 EEST 2007


Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv21144/lib-storage/index/maildir

Modified Files:
	maildir-storage.c 
Log Message:
Moved all storage destruction code to mail-storage.c and made destroy()
optional. Removed set_callbacks(). Made autodetect() optional.



Index: maildir-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-storage.c,v
retrieving revision 1.158
retrieving revision 1.159
diff -u -d -r1.158 -r1.159
--- maildir-storage.c	30 Mar 2007 13:40:19 -0000	1.158
+++ maildir-storage.c	30 Mar 2007 14:12:51 -0000	1.159
@@ -292,12 +292,6 @@
 	return 0;
 }
 
-static void maildir_free(struct mail_storage *storage)
-{
-	index_storage_deinit(storage);
-	pool_unref(storage->pool);
-}
-
 static bool maildir_autodetect(const char *data, enum mail_storage_flags flags)
 {
 	bool debug = (flags & MAIL_STORAGE_FLAG_DEBUG) != 0;
@@ -1070,9 +1064,8 @@
 		maildir_class_deinit,
 		maildir_alloc,
 		maildir_create,
-		maildir_free,
+		NULL,
 		maildir_autodetect,
-		index_storage_set_callbacks,
 		maildir_mailbox_open,
 		maildir_mailbox_create,
 		index_storage_get_last_error



More information about the dovecot-cvs mailing list