imap-send.c: remove struct message

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>

Michael Haggerty committed Jan 15, 2013 at 09:06 UTC e6de37513969a42160647056db8580902d9614d8
1 file changed -26
imap-send.c
-26
@@ -33,23 +33,10 @@ typedef void *SSL;
33 #include <openssl/hmac.h>
34 #endif
35
36 -/* For message->status */
37 -#define M_RECENT (1<<0) /* unsyncable flag; maildir_* depend on this being 1<<0 */
38 -#define M_DEAD (1<<1) /* expunged */
39 -#define M_FLAGS (1<<2) /* flags fetched */
40 -
41 -struct message {
42 - struct message *next;
43 - size_t size; /* zero implies "not fetched" */
44 - int uid;
45 - unsigned char flags, status;
46 -};
47 -
36 struct store {
37 /* currently open mailbox */
38 const char *name; /* foreign! maybe preset? */
39 char *path; /* own */
52 - struct message *msgs; /* own */
40 int uidvalidity;
41 unsigned char opts; /* maybe preset? */
42 /* note that the following do _not_ reflect stats from msgs, but mailbox totals */
@@ -74,8 +61,6 @@ static void imap_warn(const char *, ...);
61
62 static char *next_arg(char **);
63
77 -static void free_generic_messages(struct message *);
78 -
64 __attribute__((format (printf, 3, 4)))
65 static int nfsnprintf(char *buf, int blen, const char *fmt, ...);
66
@@ -447,16 +432,6 @@ static char *next_arg(char **s)
432 return ret;
433 }
434
450 -static void free_generic_messages(struct message *msgs)
451 -{
452 - struct message *tmsg;
453 -
454 - for (; msgs; msgs = tmsg) {
455 - tmsg = msgs->next;
456 - free(msgs);
457 - }
458 -}
459 -
435 static int nfsnprintf(char *buf, int blen, const char *fmt, ...)
436 {
437 int ret;
@@ -914,7 +889,6 @@ static void imap_close_server(struct imap_store *ictx)
889 static void imap_close_store(struct store *ctx)
890 {
891 imap_close_server((struct imap_store *)ctx);
917 - free_generic_messages(ctx->msgs);
892 free(ctx);
893 }
894