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

Remove unused conditional code from MVSortedTempResult.removeRow()

上级 a47cf2a2
......@@ -255,26 +255,10 @@ class MVSortedTempResult extends MVTempResult {
@Override
public int removeRow(Value[] values) {
assert parent == null;
ValueArray key = getKey(values);
if (distinct) {
// If an entry was removed decrement the counter
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--;
}
assert parent == null && distinct;
// If an entry was removed decrement the counter
if (map.remove(getKey(values)) != null) {
rowCount--;
}
return rowCount;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论