Skip to content

Commit 3062147

Browse files
committed
Remove commented out code
Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
1 parent 5aad1e0 commit 3062147

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/main/java/org/spdx/utility/compare/LicenseCompareHelper.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -702,9 +702,6 @@ public static Pair<Pattern, Pattern> nonOptionalTextToPatterns(List<String> nonO
702702
String lastRegex = "";
703703
while (startWordCount < numberOfWords && startTextIndex < nonOptionalText.size()) {
704704
String line = nonOptionalText.get(startTextIndex++);
705-
// if (startPatternBuilder.length() > 0 && line.trim().length() > 0 && !startPatternBuilder.toString().endsWith("}")) {
706-
// startPatternBuilder.append(".{0").append(regexLimit); //TODO: Replace this with the optional text match itself - requires redesign
707-
// }
708705
String[] regexSplits = line.trim().split(FilterTemplateOutputHandler.REGEX_ESCAPE);
709706
boolean inRegex = false; // if it starts with a regex, it will start with a blank line
710707
for (String regexSplit:regexSplits) {
@@ -769,9 +766,6 @@ public static Pair<Pattern, Pattern> nonOptionalTextToPatterns(List<String> nonO
769766
(endTextIndex == lastProcessedStartLine && (numberOfWords - endWordCount) < (nonOptionalText.get(endTextIndex).length() - wordsInLastLine)))) { // Check to make sure we're not overlapping the start words
770767
List<String> nonEmptyTokens = new ArrayList<>();
771768
String line = nonOptionalText.get(endTextIndex);
772-
// if (endTextReversePattern.size() > 0 && line.trim().length() > 0 && !endTextReversePattern.get(endTextReversePattern.size()-1).endsWith("}")) {
773-
// endTextReversePattern.add(".{0,50}"); //TODO: Replace this with the optional text match itself - requires redesign
774-
// }
775769
String[] regexSplits = line.trim().split(FilterTemplateOutputHandler.REGEX_ESCAPE);
776770
boolean inRegex = false;
777771
for (String regexSplit:regexSplits) {

0 commit comments

Comments
 (0)