mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-04 02:55:42 +08:00
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:
parent
9d303a74e3
commit
acb47f70d2
@ -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,
|
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 *inout_cursor, time_t cutoff_timestamp) {
|
||||||
size_t cursor = *inout_cursor;
|
size_t cursor = *inout_cursor;
|
||||||
maybe_t<size_t> result = none();
|
|
||||||
const size_t length = contents.length();
|
const size_t length = contents.length();
|
||||||
const char *const begin = contents.begin();
|
const char *const begin = contents.begin();
|
||||||
const char *const end = contents.end();
|
const char *const end = contents.end();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user