Skip to content

Commit

Permalink
imap-send: remove dead code
Browse files Browse the repository at this point in the history
The imap-send code was adapted from another project, and
still contains many unused bits of code. One of these bits
contains a type "struct string_list" which bears no
resemblence to the "struct string_list" we use elsewhere in
git. This causes the compiler to complain if git's
string_list ever becomes part of cache.h.

Let's just drop the dead code.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jeff King authored and Junio C Hamano committed Feb 6, 2012
1 parent 04f6785 commit 28b22f8
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions imap-send.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,36 +41,13 @@ struct store_conf {
unsigned trash_remote_new:1, trash_only_new:1;
};

struct string_list {
struct string_list *next;
char string[1];
};

struct channel_conf {
struct channel_conf *next;
char *name;
struct store_conf *master, *slave;
char *master_name, *slave_name;
char *sync_state;
struct string_list *patterns;
int mops, sops;
unsigned max_messages; /* for slave only */
};

struct group_conf {
struct group_conf *next;
char *name;
struct string_list *channels;
};

/* 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;
/* struct string_list *keywords; */
size_t size; /* zero implies "not fetched" */
int uid;
unsigned char flags, status;
Expand Down

0 comments on commit 28b22f8

Please sign in to comment.