From 65d43e3cea10e40f65e9cd1b49ef1ddaed514a14 Mon Sep 17 00:00:00 2001 From: Léo Villeveygoux Date: Tue, 6 Jul 2021 19:47:50 +0200 Subject: 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> --- mpick.c | 6 ++---- 1 file 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; } -- cgit 1.4.1