提交 228f37b2 authored 作者: andrei's avatar andrei

outdated comments removal #1063

上级 d6ad398c
......@@ -971,7 +971,6 @@ public class Session extends SessionWithState implements TransactionStore.Rollba
}
}
if (!locks.isEmpty()) {
// don't use the enhanced for loop to save memory
for (Table t : locks) {
t.unlock(this);
}
......
......@@ -82,7 +82,6 @@ public class IndexCursor implements Cursor {
inResult = null;
inResultTested = null;
intersects = null;
// don't use enhanced for loop to avoid creating objects
for (IndexCondition condition : indexConditions) {
if (condition.isAlwaysFalse()) {
alwaysFalse = true;
......
......@@ -993,7 +993,6 @@ public abstract class Table extends SchemaObjectBase {
private void fireConstraints(Session session, Row oldRow, Row newRow,
boolean before) {
if (constraints != null) {
// don't use enhanced for loop to avoid creating objects
for (Constraint constraint : constraints) {
if (constraint.isBefore() == before) {
constraint.checkRow(session, this, oldRow, newRow);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论