[dovecot-cvs] dovecot/src/lib-index mail-index.c, 1.272, 1.273 mail-index.h, 1.166, 1.167

tss at dovecot.org tss at dovecot.org
Sun May 13 19:53:44 EEST 2007


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

Modified Files:
	mail-index.c mail-index.h 
Log Message:
Removed mail_index_get_last_error() and MAIL_INDEX_ERROR_*. All the index
errors are internal errors.



Index: mail-index.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index.c,v
retrieving revision 1.272
retrieving revision 1.273
diff -u -d -r1.272 -r1.273
--- mail-index.c	29 Mar 2007 14:19:47 -0000	1.272
+++ mail-index.c	13 May 2007 16:53:41 -0000	1.273
@@ -1987,16 +1987,6 @@
 				    function, filepath);
 }
 
-enum mail_index_error mail_index_get_last_error(struct mail_index *index)
-{
-	if (index->nodiskspace)
-		return MAIL_INDEX_ERROR_DISKSPACE;
-	if (index->error != NULL)
-		return MAIL_INDEX_ERROR_INTERNAL;
-
-	return MAIL_INDEX_ERROR_NONE;
-}
-
 const char *mail_index_get_error_message(struct mail_index *index)
 {
 	return index->error;

Index: mail-index.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index.h,v
retrieving revision 1.166
retrieving revision 1.167
diff -u -d -r1.166 -r1.167
--- mail-index.h	29 Mar 2007 14:19:47 -0000	1.166
+++ mail-index.h	13 May 2007 16:53:41 -0000	1.167
@@ -42,15 +42,6 @@
 	MAIL_INDEX_MAIL_FLAG_DIRTY = 0x80
 };
 
-enum mail_index_error {
-	/* No errors */
-	MAIL_INDEX_ERROR_NONE,
-	/* Internal error, see get_error_text() for more information. */
-	MAIL_INDEX_ERROR_INTERNAL,
-	/* We ran out of available disk space. */
-	MAIL_INDEX_ERROR_DISKSPACE
-};
-
 #define MAIL_INDEX_FLAGS_MASK \
 	(MAIL_ANSWERED | MAIL_FLAGGED | MAIL_DELETED | MAIL_SEEN | MAIL_DRAFT)
 
@@ -349,8 +340,6 @@
 			      size_t offset, const void *data, size_t size,
 			      bool prepend);
 
-/* Returns the last error code. */
-enum mail_index_error mail_index_get_last_error(struct mail_index *index);
 /* Returns the full error message for last error. This message may
    contain paths etc. so it shouldn't be shown to users. */
 const char *mail_index_get_error_message(struct mail_index *index);



More information about the dovecot-cvs mailing list