diff options
author | cmumford <cmumford@google.com> | 2017-10-19 10:33:42 -0700 |
---|---|---|
committer | Victor Costan <pwnall@chromium.org> | 2017-11-03 15:03:44 -0700 |
commit | 3da4d8b9899257386aeb5ffa345a6477c62ff7bf (patch) | |
tree | 1b074b3c2cf8517232431d92b31dfc46db8c09c3 /CONTRIBUTING.md | |
parent | 0509414f858ae7c7225e29f3659a709afb324355 (diff) | |
download | leveldb-3da4d8b9899257386aeb5ffa345a6477c62ff7bf.tar.gz |
Deleted unused assignments in Reader.
Deleted two unused assignments:
1. offset_in_block in Reader::SkipToInitialBlock().
2. in_fragmented_record in Reader::ReadRecord().
Reasons for the change:
1. offset_in_block is not read again after the if condition.
2. The kFullRecordType switch branch returns, so
in_fragmented_record isn't read again.
3. The kFirstType switch branch sets in_fragmented_record to
true after the if, so the write in the if is ignored.
Change contributed by @C0deAi on GitHub.
This fixes https://github.com/google/leveldb/issues/517
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=172763897
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions