Skip to content

Commit

Permalink
DBIter::FindValueForCurrentKey: remove unused Status s
Browse files Browse the repository at this point in the history
  • Loading branch information
rockeet committed Apr 22, 2023
1 parent d79be3d commit 152e723
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions db/db_iter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -964,9 +964,6 @@ bool DBIter::FindValueForCurrentKey() {
assert(last_key_entry_type == ikey_.type);
}

Status s;
s.PermitUncheckedError();

switch (last_key_entry_type) {
case kTypeDeletion:
case kTypeDeletionWithTimestamp:
Expand Down Expand Up @@ -1043,11 +1040,6 @@ bool DBIter::FindValueForCurrentKey() {
std::to_string(static_cast<unsigned int>(last_key_entry_type)));
return false;
}
if (!s.ok()) {
valid_ = false;
status_ = s;
return false;
}
valid_ = true;
return true;
}
Expand Down

0 comments on commit 152e723

Please sign in to comment.