history_file.cpp: remove an unused variable

Now that maybe_t<size_t> no longer has a user-defined destructor, the compiler
can better detect an unused variable of this type.
This commit is contained in:
Johannes Altmanninger 2022-10-26 14:37:09 +02:00
parent 9d303a74e3
commit acb47f70d2

View File

@ -374,7 +374,6 @@ static const char *next_line(const char *start, const char *end) {
static maybe_t<size_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<size_t> result = none();
const size_t length = contents.length();
const char *const begin = contents.begin();
const char *const end = contents.end();