Skip to content

Commit

Permalink
Remove commented out code
Browse files Browse the repository at this point in the history
Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
  • Loading branch information
goneall committed Dec 9, 2023
1 parent 5aad1e0 commit 3062147
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -702,9 +702,6 @@ public static Pair<Pattern, Pattern> nonOptionalTextToPatterns(List<String> nonO
String lastRegex = "";
while (startWordCount < numberOfWords && startTextIndex < nonOptionalText.size()) {
String line = nonOptionalText.get(startTextIndex++);
// if (startPatternBuilder.length() > 0 && line.trim().length() > 0 && !startPatternBuilder.toString().endsWith("}")) {
// startPatternBuilder.append(".{0").append(regexLimit); //TODO: Replace this with the optional text match itself - requires redesign
// }
String[] regexSplits = line.trim().split(FilterTemplateOutputHandler.REGEX_ESCAPE);
boolean inRegex = false; // if it starts with a regex, it will start with a blank line
for (String regexSplit:regexSplits) {
Expand Down Expand Up @@ -769,9 +766,6 @@ public static Pair<Pattern, Pattern> nonOptionalTextToPatterns(List<String> nonO
(endTextIndex == lastProcessedStartLine && (numberOfWords - endWordCount) < (nonOptionalText.get(endTextIndex).length() - wordsInLastLine)))) { // Check to make sure we're not overlapping the start words
List<String> nonEmptyTokens = new ArrayList<>();
String line = nonOptionalText.get(endTextIndex);
// if (endTextReversePattern.size() > 0 && line.trim().length() > 0 && !endTextReversePattern.get(endTextReversePattern.size()-1).endsWith("}")) {
// endTextReversePattern.add(".{0,50}"); //TODO: Replace this with the optional text match itself - requires redesign
// }
String[] regexSplits = line.trim().split(FilterTemplateOutputHandler.REGEX_ESCAPE);
boolean inRegex = false;
for (String regexSplit:regexSplits) {
Expand Down

0 comments on commit 3062147

Please sign in to comment.