Skip to content

Commit 28b22f8

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 04f6785 commit 28b22f8

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

imap-send.c

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -41,36 +41,13 @@ struct store_conf {
4141
unsigned trash_remote_new:1, trash_only_new:1;
4242
};
4343

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-
6644
/* For message->status */
6745
#define M_RECENT (1<<0) /* unsyncable flag; maildir_* depend on this being 1<<0 */
6846
#define M_DEAD (1<<1) /* expunged */
6947
#define M_FLAGS (1<<2) /* flags fetched */
7048

7149
struct message {
7250
struct message *next;
73-
/* struct string_list *keywords; */
7451
size_t size; /* zero implies "not fetched" */
7552
int uid;
7653
unsigned char flags, status;

0 commit comments

Comments
 (0)