From 2399dc798abda0528582d179dbfbb131b8e57c68 Mon Sep 17 00:00:00 2001 From: Rouven Walter Date: Tue, 29 Aug 2023 23:01:27 +0200 Subject: [PATCH] remove unused parameter from UBTree#getAllNodesContainingElementsLessThan --- src/main/java/org/logicng/datastructures/ubtrees/UBTree.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/logicng/datastructures/ubtrees/UBTree.java b/src/main/java/org/logicng/datastructures/ubtrees/UBTree.java index ecb761a4..a65edadf 100644 --- a/src/main/java/org/logicng/datastructures/ubtrees/UBTree.java +++ b/src/main/java/org/logicng/datastructures/ubtrees/UBTree.java @@ -185,7 +185,7 @@ private void allSubsets(final SortedSet set, final SortedMap> fo } private void allSupersets(final SortedSet set, final SortedMap> forest, final Set> supersets) { - final Set> nodes = getAllNodesContainingElementsLessThan(set, forest, set.first()); + final Set> nodes = getAllNodesContainingElementsLessThan(forest, set.first()); for (final UBNode node : nodes) { allSupersets(set, node.children(), supersets); } @@ -219,7 +219,7 @@ private Set> getAllNodesContainingElements(final SortedSet set, fin return nodes; } - private Set> getAllNodesContainingElementsLessThan(final SortedSet set, final SortedMap> forest, final T element) { + private Set> getAllNodesContainingElementsLessThan(final SortedMap> forest, final T element) { final Set> nodes = new LinkedHashSet<>(); for (final UBNode node : forest.values()) { if (node != null && node.element().compareTo(element) < 0) {