From 9308cf15b6b3c3ec98b60ec66c3fd5ca8e2c9176 Mon Sep 17 00:00:00 2001 From: Ivan Kniazkov Date: Wed, 4 Sep 2024 11:26:35 +0300 Subject: [PATCH] More tests --- .../core/algorithms/mapping/TopDownAlgorithm.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/main/java/org/cqfn/astranaut/core/algorithms/mapping/TopDownAlgorithm.java b/src/main/java/org/cqfn/astranaut/core/algorithms/mapping/TopDownAlgorithm.java index 2e933d8..d79b8ce 100644 --- a/src/main/java/org/cqfn/astranaut/core/algorithms/mapping/TopDownAlgorithm.java +++ b/src/main/java/org/cqfn/astranaut/core/algorithms/mapping/TopDownAlgorithm.java @@ -448,11 +448,7 @@ void nodeWasInserted() { */ void nodeWasDeleted() { this.left = this.left - 1; - if (this.delete > 0) { - this.delete = this.delete - 1; - } else { - this.add = this.add + 1; - } + this.delete = this.delete - 1; } /** @@ -497,11 +493,6 @@ private static class Child { this.before = before; this.after = after; } - - @Override - public String toString() { - return this.node.toString(); - } } }