imap-send: remove dead code
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>
Jeff King committed
Feb 6, 2012 at 01:29 UTC
28b22f8af9053109d1f09fef749b6b96ee41050a
1 file changed
-23
imap-send.c
-23
@@ -41,28 +41,6 @@ struct store_conf {
41
unsigned trash_remote_new:1, trash_only_new:1;
42
};
43
44
-struct string_list {
45
- struct string_list *next;
46
- char string[1];
47
-};
48
-
49
-struct channel_conf {
50
- struct channel_conf *next;
51
- char *name;
52
- struct store_conf *master, *slave;
53
- char *master_name, *slave_name;
54
- char *sync_state;
55
- struct string_list *patterns;
56
- int mops, sops;
57
- unsigned max_messages; /* for slave only */
58
-};
59
-
60
-struct group_conf {
61
- struct group_conf *next;
62
- char *name;
63
- struct string_list *channels;
64
-};
65
-
44
/* For message->status */
45
#define M_RECENT (1<<0) /* unsyncable flag; maildir_* depend on this being 1<<0 */
46
#define M_DEAD (1<<1) /* expunged */
@@ -70,7 +48,6 @@ struct group_conf {
48
49
struct message {
50
struct message *next;
73
- /* struct string_list *keywords; */
51
size_t size; /* zero implies "not fetched" */
52
int uid;
53
unsigned char flags, status;