about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLéo Villeveygoux <l@vgx.fr>2021-07-06 19:47:50 +0200
committerLeah Neukirchen <leah@vuxu.org>2021-07-06 19:53:26 +0200
commit65d43e3cea10e40f65e9cd1b49ef1ddaed514a14 (patch)
tree3f277fc35c8ab665a9e204e0cc7c96a0298b8e52
parent386b65fcb4398e25e99f3f0b72e92603b989f932 (diff)
downloadmblaze-65d43e3cea10e40f65e9cd1b49ef1ddaed514a14.tar.gz
mblaze-65d43e3cea10e40f65e9cd1b49ef1ddaed514a14.tar.xz
mblaze-65d43e3cea10e40f65e9cd1b49ef1ddaed514a14.zip
mpick: remove dead code
It would load the seq file even when unused (and complain when it's not found).
Message-Id: <20210706174750.246026-1-l@vgx.fr>
-rw-r--r--mpick.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mpick.c b/mpick.c
index 3b11e67..6d80e63 100644
--- a/mpick.c
+++ b/mpick.c
@@ -1256,10 +1256,8 @@ mailfile(struct mailinfo *m, char *file)
 {
 	static int init;
 	if (!init) {
-		// delay loading of the seqmap until we need to scan the first
-		// file, in case someone in the pipe updated the map before
-		char *seqmap = blaze822_seq_open(0);
-		blaze822_seq_load(seqmap);
+		// delay loading of the cur mail until we need to scan the first
+		// file, in case someone in the pipe updated it before
 		cur = blaze822_seq_cur();
 		init = 1;
 	}