Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
kunga committed Feb 8, 2024
1 parent 8cefe19 commit 8d51432
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ydb/core/tablet_flat/flat_part_charge_btree_index.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ class TChargeBTreeIndex : public ICharge {
auto childState = BuildChildState(node, child, prevChild);
if (LimitExceeded(firstChild.Items, childState.PrevItems, itemsLimit) || LimitExceeded(firstChild.Bytes, childState.PrevBytes, bytesLimit)) {
endRowId = Min(endRowId, childState.BeginRowId);
overshot = false;
return;
}
ready &= tryHandleChild(childState);
Expand Down Expand Up @@ -264,7 +263,6 @@ class TChargeBTreeIndex : public ICharge {
auto childState = BuildChildState(node, child, prevChild);
if (LimitExceeded(childState.Items, lastChild.PrevItems, itemsLimit) || LimitExceeded(childState.Bytes, lastChild.PrevBytes, bytesLimit)) {
beginRowId = Max(beginRowId, childState.EndRowId);
overshot = false;
return;
}
ready &= tryHandleChild(childState);
Expand Down Expand Up @@ -799,10 +797,6 @@ class TChargeBTreeIndex : public ICharge {
prevChild ? prevChild->DataSize : parent.PrevBytes, child.DataSize);
}

bool LimitExceeded(ui64 value, ui64 limit) const noexcept {
return limit && value > limit;
}

bool LimitExceeded(ui64 prev, ui64 current, ui64 limit) const noexcept {
return limit && current > prev && current - prev > limit;
}
Expand Down

0 comments on commit 8d51432

Please sign in to comment.