Skip to content

Commit d3fb450

Browse files
committed
removed some unnecesary code
1 parent 8d360f4 commit d3fb450

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

src/main/java/com/vicmar57/productProcessor/model/SimpleInvalidFilter.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,4 @@ public static boolean filterConditionally(String value, List<String> exclusionLi
4141
// if(attr.getValues().size() == 0)
4242
// attrIt.remove();
4343
// }
44-
// }
45-
46-
47-
// public void cleanAttributes(List<Attribute> attributes) {
48-
// the java 7 way
49-
// //iterate over all attributes
50-
// Iterator<Attribute> attrIt = attributes.iterator();
51-
// while (attrIt.hasNext()) {
52-
// Attribute attr = attrIt.next();
53-
// Iterator<String> it = attr.getValues().iterator();
54-
// //iterate over all attribute values
55-
// while (it.hasNext()) {
56-
// String curr = it.next();
57-
// if (curr == null || curr.equals(""))
58-
// it.remove(); // NOTE: Iterator's remove method, not ArrayList's, is used.
59-
// }
60-
// if (attr.getValues().size() == 0)
61-
// attrIt.remove();
62-
// }
6344
// }

src/main/java/com/vicmar57/productProcessor/model/SimpleNormalizeCaps.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ public class SimpleNormalizeCaps implements INormalizeCapsBehaviour {
99
@Override
1010
public void normalize_caps(List<Attribute> attributes) {
1111
attributes.stream()
12-
//.skip(1) //assuming the "title" attribute is always first, skip it
1312
.forEach(at -> {
1413
if(!at.getName().equals("title")) {
1514
at.getValues()

0 commit comments

Comments
 (0)