提交 006599c8 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Remove unused conditional code from MVSortedTempResult.removeRow()

上级 a47cf2a2
...@@ -255,26 +255,10 @@ class MVSortedTempResult extends MVTempResult { ...@@ -255,26 +255,10 @@ class MVSortedTempResult extends MVTempResult {
@Override @Override
public int removeRow(Value[] values) { public int removeRow(Value[] values) {
assert parent == null; assert parent == null && distinct;
ValueArray key = getKey(values); // If an entry was removed decrement the counter
if (distinct) { if (map.remove(getKey(values)) != null) {
// If an entry was removed decrement the counter rowCount--;
if (map.remove(key) != null) {
rowCount--;
}
} else {
Long old = map.remove(key);
if (old != null) {
long l = old;
if (l > 1) {
/*
* We have more than one such row. Decrement its counter by 1 and put this row
* back into map.
*/
map.put(key, l - 1);
}
rowCount--;
}
} }
return rowCount; return rowCount;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论