Skip to content

Commit e6de375

Browse files
mhaggergitster
authored andcommitted
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>
1 parent 2fbd211 commit e6de375

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

imap-send.c

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,10 @@ typedef void *SSL;
3333
#include <openssl/hmac.h>
3434
#endif
3535

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-
4836
struct store {
4937
/* currently open mailbox */
5038
const char *name; /* foreign! maybe preset? */
5139
char *path; /* own */
52-
struct message *msgs; /* own */
5340
int uidvalidity;
5441
unsigned char opts; /* maybe preset? */
5542
/* note that the following do _not_ reflect stats from msgs, but mailbox totals */
@@ -74,8 +61,6 @@ static void imap_warn(const char *, ...);
7461

7562
static char *next_arg(char **);
7663

77-
static void free_generic_messages(struct message *);
78-
7964
__attribute__((format (printf, 3, 4)))
8065
static int nfsnprintf(char *buf, int blen, const char *fmt, ...);
8166

@@ -447,16 +432,6 @@ static char *next_arg(char **s)
447432
return ret;
448433
}
449434

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-
460435
static int nfsnprintf(char *buf, int blen, const char *fmt, ...)
461436
{
462437
int ret;
@@ -914,7 +889,6 @@ static void imap_close_server(struct imap_store *ictx)
914889
static void imap_close_store(struct store *ctx)
915890
{
916891
imap_close_server((struct imap_store *)ctx);
917-
free_generic_messages(ctx->msgs);
918892
free(ctx);
919893
}
920894

0 commit comments

Comments
 (0)