[dovecot-cvs] dovecot/src/lib-storage/index index-storage.c, 1.109, 1.110 index-storage.h, 1.120, 1.121

tss at dovecot.org tss at dovecot.org
Fri Mar 30 21:57:41 EEST 2007


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

Modified Files:
	index-storage.c index-storage.h 
Log Message:
Removed virtual mail_storage.get_last_error(). The implementation is always
the same.



Index: index-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-storage.c,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -d -r1.109 -r1.110
--- index-storage.c	30 Mar 2007 18:45:21 -0000	1.109
+++ index-storage.c	30 Mar 2007 18:57:35 -0000	1.110
@@ -409,19 +409,6 @@
 	return mail_index_view_is_inconsistent(ibox->view);
 }
 
-const char *index_storage_get_last_error(struct mail_storage *storage,
-					 bool *syntax_error_r,
-					 bool *temporary_error_r)
-{
-	*syntax_error_r = storage->syntax_error;
-	*temporary_error_r = storage->temporary_error;
-
-	/* We get here only in error situations, so we have to return some
-	   error. If storage->error is NULL, it means we forgot to set it at
-	   some point.. */
-	return storage->error != NULL ? storage->error : "Unknown error";
-}
-
 void mail_storage_set_index_error(struct index_mailbox *ibox)
 {
 	switch (mail_index_get_last_error(ibox->index)) {

Index: index-storage.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-storage.h,v
retrieving revision 1.120
retrieving revision 1.121
diff -u -d -r1.120 -r1.121
--- index-storage.h	30 Mar 2007 18:45:21 -0000	1.120
+++ index-storage.h	30 Mar 2007 18:57:35 -0000	1.121
@@ -134,9 +134,6 @@
 
 int index_storage_sync(struct mailbox *box, enum mailbox_sync_flags flags);
 
-const char *index_storage_get_last_error(struct mail_storage *storage,
-					 bool *syntax_error_r,
-					 bool *temporary_error_r);
 int index_storage_get_status(struct mailbox *box,
 			     enum mailbox_status_items items,
 			     struct mailbox_status *status);



More information about the dovecot-cvs mailing list