提交 28b22f8a 编写于 作者: J Jeff King 提交者: Junio C Hamano

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: NJeff King <peff@peff.net>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 04f6785a
......@@ -41,28 +41,6 @@ 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 */
......@@ -70,7 +48,6 @@ struct group_conf {
struct message {
struct message *next;
/* struct string_list *keywords; */
size_t size; /* zero implies "not fetched" */
int uid;
unsigned char flags, status;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册