Skip to content

Commit 1facbb4

Browse files
refactor(compact_obj): Clean up code
Signed-off-by: Stepan Bagritsevich <[email protected]>
1 parent 9b61080 commit 1facbb4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/core/compact_object.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ size_t QlMAllocSize(quicklist* ql, bool slow) {
5656
}
5757

5858
size_t UpdateSize(size_t size, int64_t update) {
59-
if (update >= 0) {
60-
return size + update;
61-
}
62-
6359
int64_t result = static_cast<int64_t>(size) + update;
6460
if (result < 0) {
6561
DCHECK(false) << "Can't decrease " << size << " from " << -update;

0 commit comments

Comments
 (0)