From acb47f70d2ade727c012f4b60fac0f6023d5bc98 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Wed, 26 Oct 2022 14:37:09 +0200 Subject: [PATCH] history_file.cpp: remove an unused variable Now that maybe_t no longer has a user-defined destructor, the compiler can better detect an unused variable of this type. --- src/history_file.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/history_file.cpp b/src/history_file.cpp index cce13548a..2b06a5368 100644 --- a/src/history_file.cpp +++ b/src/history_file.cpp @@ -374,7 +374,6 @@ static const char *next_line(const char *start, const char *end) { static maybe_t offset_of_next_item_fish_2_0(const history_file_contents_t &contents, size_t *inout_cursor, time_t cutoff_timestamp) { size_t cursor = *inout_cursor; - maybe_t result = none(); const size_t length = contents.length(); const char *const begin = contents.begin(); const char *const end = contents.end();