Skip to content

Commit 45b5a07

Browse files
Removed System.out.println
1 parent 174408b commit 45b5a07

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/main/java/programminglife/model/drawing/DrawableSegment.java

-7
Original file line numberDiff line numberDiff line change
@@ -118,21 +118,16 @@ public DrawableNode getChildSegment() {
118118
public DrawableSNP createSNPIfPossible(SubGraph subGraph) {
119119
// A SNP-able node has:
120120
if (children.size() < 2) { // - at least 2 children
121-
System.out.println("Not enough children");
122121
return null;
123122
} else if (children.size() > 4) { // - at most 4 children
124-
System.out.println("Too many children (" + children.size() + ")");
125123
return null;
126124
} else if (!children.stream().allMatch(id -> id >= 0)) { // - no dummy children
127-
System.out.println("ID < 0");
128125
return null;
129126
} else if (!subGraph.getChildren(this).stream().allMatch(DrawableSegment.class::isInstance)) {
130127
// - only children of type DrawableSegment
131-
System.out.println("Not all Segments");
132128
return null;
133129
} else if (children.stream().anyMatch(id -> getGraph().getSequenceLength(id) != 1)) {
134130
// - only children of length 1
135-
System.out.println("Sequence length > 1");
136131
return null;
137132
} else {
138133
Collection<DrawableSegment> childNodes = subGraph.getChildren(this).stream()
@@ -147,10 +142,8 @@ public DrawableSNP createSNPIfPossible(SubGraph subGraph) {
147142
.flatMap(Collection::stream)
148143
.collect(Collectors.toSet());
149144
if (childChildren.size() != 1) { // - all children have 1 and the same child
150-
System.out.println("More than 1 children");
151145
return null;
152146
} else if (childParents.size() != 1) { // - all children have 1 and the same parent
153-
System.out.println("More than 1 parents");
154147
return null;
155148
}
156149

0 commit comments

Comments
 (0)