Skip to content

Commit 95bc2d1

Browse files
author
meri
committed
Removed debug sysout #151
1 parent aea56a3 commit 95bc2d1

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/main/java/com/github/sommeri/less4j/core/compiler/selectors/SelectorsComparatorForExtend.java

+1-9
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,13 @@ private boolean containsInList(List<SelectorPart> lookForParts, List<SelectorPar
5555
}
5656

5757
private void replaceInList(List<SelectorPart> lookForParts, Selector inSelector, List<SelectorPart> originalReplaceBy) {
58-
replaceInList(lookForParts, inSelector, originalReplaceBy, false);
59-
}
60-
private void replaceInList(List<SelectorPart> lookForParts, Selector inSelector, List<SelectorPart> originalReplaceBy, boolean hackLog) {
6158
List<SelectorPart> inSelectorParts = inSelector.getParts();
6259
SelectorPartsListBuilder builder = new SelectorPartsListBuilder();
6360

6461
List<MatchMarker<SelectorPart>> matches = listsComparator.findMatches(lookForParts, inSelectorParts, selectorPartsComparator);
6562
if (matches.isEmpty() || originalReplaceBy == null || originalReplaceBy.isEmpty())
6663
return ;
6764

68-
if (hackLog)
69-
System.out.println("something will happen");
70-
7165
SelectorPart lastRemainder = null;
7266
MatchMarker<SelectorPart> previousMatch = null;
7367
for (MatchMarker<SelectorPart> currentMatch : matches) {
@@ -170,12 +164,10 @@ private boolean containsEmbedded(List<SelectorPart> lookFor, ASTCssNode inside)
170164
private void replaceEmbedded(List<SelectorPart> lookFor, ASTCssNode inside, List<SelectorPart> originalReplaceBy) {
171165
for (ASTCssNode kid : inside.getChilds()) {
172166
replaceEmbedded(lookFor, kid, originalReplaceBy);
173-
System.out.println(kid);
174167
switch (kid.getType()) {
175168
case SELECTOR:
176169
Selector kidSelector = (Selector) kid;
177-
System.out.println(" - replacing in embedded - ");
178-
replaceInList(lookFor, kidSelector, originalReplaceBy, true);
170+
replaceInList(lookFor, kidSelector, originalReplaceBy);
179171
default:
180172
break;
181173
}

0 commit comments

Comments
 (0)