Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
imap-send.c: remove struct message
author
Michael Haggerty
<mhagger@alum.mit.edu>
Tue, 15 Jan 2013 08:06:23 +0000
(09:06 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 15 Jan 2013 20:59:51 +0000
(12:59 -0800)
It was never used.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
imap-send.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
2fbd211
)
diff --git
a/imap-send.c
b/imap-send.c
index b8a7ff97e8e60ea5ffe22e9d03a171c8c407e05f..9e181e098cfb063d61c0d40a7637c2212ab433e8 100644
(file)
--- a/
imap-send.c
+++ b/
imap-send.c
@@
-33,23
+33,10
@@
typedef void *SSL;
#include <openssl/hmac.h>
#endif
#include <openssl/hmac.h>
#endif
-/* For message->status */
-#define M_RECENT (1<<0) /* unsyncable flag; maildir_* depend on this being 1<<0 */
-#define M_DEAD (1<<1) /* expunged */
-#define M_FLAGS (1<<2) /* flags fetched */
-
-struct message {
- struct message *next;
- size_t size; /* zero implies "not fetched" */
- int uid;
- unsigned char flags, status;
-};
-
struct store {
/* currently open mailbox */
const char *name; /* foreign! maybe preset? */
char *path; /* own */
struct store {
/* currently open mailbox */
const char *name; /* foreign! maybe preset? */
char *path; /* own */
- struct message *msgs; /* own */
int uidvalidity;
unsigned char opts; /* maybe preset? */
/* note that the following do _not_ reflect stats from msgs, but mailbox totals */
int uidvalidity;
unsigned char opts; /* maybe preset? */
/* note that the following do _not_ reflect stats from msgs, but mailbox totals */
@@
-74,8
+61,6
@@
static void imap_warn(const char *, ...);
static char *next_arg(char **);
static char *next_arg(char **);
-static void free_generic_messages(struct message *);
-
__attribute__((format (printf, 3, 4)))
static int nfsnprintf(char *buf, int blen, const char *fmt, ...);
__attribute__((format (printf, 3, 4)))
static int nfsnprintf(char *buf, int blen, const char *fmt, ...);
@@
-447,16
+432,6
@@
static char *next_arg(char **s)
return ret;
}
return ret;
}
-static void free_generic_messages(struct message *msgs)
-{
- struct message *tmsg;
-
- for (; msgs; msgs = tmsg) {
- tmsg = msgs->next;
- free(msgs);
- }
-}
-
static int nfsnprintf(char *buf, int blen, const char *fmt, ...)
{
int ret;
static int nfsnprintf(char *buf, int blen, const char *fmt, ...)
{
int ret;
@@
-914,7
+889,6
@@
static void imap_close_server(struct imap_store *ictx)
static void imap_close_store(struct store *ctx)
{
imap_close_server((struct imap_store *)ctx);
static void imap_close_store(struct store *ctx)
{
imap_close_server((struct imap_store *)ctx);
- free_generic_messages(ctx->msgs);
free(ctx);
}
free(ctx);
}