Skip to content
Permalink
Browse files
Remove unused parameter in private method
  • Loading branch information
FSchumacher committed Mar 5, 2022
1 parent fe0d0f8 commit 3aa7cbf9418abe0fdb0ce4021302b7a1365dbe2e
Showing 1 changed file with 4 additions and 4 deletions.
@@ -187,12 +187,12 @@ private static String getParameterValue(HeaderElement element, String name, Stri
private static String getHeaderValue(String headerName, String multiPart) {
String regularExpression = headerName + "\\s*:\\s*(.*)$"; //$NON-NLS-1$
if (useJavaRegex) {
return getHeaderValueWithJavaRegex(headerName, multiPart, regularExpression);
return getHeaderValueWithJavaRegex(multiPart, regularExpression);
}
return getHeaderValueWithOroRegex(headerName, multiPart, regularExpression);
return getHeaderValueWithOroRegex(multiPart, regularExpression);
}

private static String getHeaderValueWithJavaRegex(String headerName, String multiPart, String regularExpression) {
private static String getHeaderValueWithJavaRegex(String multiPart, String regularExpression) {
java.util.regex.Pattern pattern = java.util.regex.Pattern.compile(regularExpression,
java.util.regex.Pattern.CASE_INSENSITIVE
| java.util.regex.Pattern.MULTILINE);
@@ -203,7 +203,7 @@ private static String getHeaderValueWithJavaRegex(String headerName, String mult
return null;
}

private static String getHeaderValueWithOroRegex(String headerName, String multiPart, String regularExpression) {
private static String getHeaderValueWithOroRegex(String multiPart, String regularExpression) {
Perl5Matcher localMatcher = JMeterUtils.getMatcher();
Pattern pattern = JMeterUtils.getPattern(regularExpression,
Perl5Compiler.READ_ONLY_MASK

0 comments on commit 3aa7cbf

Please sign in to comment.