You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2020/12/17 19:50:48 UTC

[jmeter] branch master updated: Remove unused variable

This is an automated email from the ASF dual-hosted git repository.

pmouawad pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new e58c557  Remove unused variable
e58c557 is described below

commit e58c557f9de052b67a354fbee175298b87eb452f
Author: pmouawad <p....@ubik-ingenierie.com>
AuthorDate: Thu Dec 17 20:50:30 2020 +0100

    Remove unused variable
---
 .../java/org/apache/jmeter/protocol/http/proxy/ProxyControl.java     | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/proxy/ProxyControl.java b/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/proxy/ProxyControl.java
index 16686c7..cda7ada 100644
--- a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/proxy/ProxyControl.java
+++ b/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/proxy/ProxyControl.java
@@ -635,7 +635,7 @@ public class ProxyControl extends GenericController implements NonTestElement {
                 sampler.setFollowRedirects(samplerFollowRedirects);
                 sampler.setUseKeepAlive(useKeepAlive);
                 sampler.setImageParser(samplerDownloadImages);
-                Authorization authorization = createAuthorization(testElements, sampler, result);
+                Authorization authorization = createAuthorization(testElements, result);
                 if (authorization != null) {
                     setAuthorization(authorization, myTarget);
                 }
@@ -667,11 +667,10 @@ public class ProxyControl extends GenericController implements NonTestElement {
      * Removes Authorization if present
      *
      * @param testElements {@link TestElement}[]
-     * @param sampler      {@link HTTPSamplerBase}
      * @param result       {@link HTTPSampleResult}
      * @return {@link Authorization}
      */
-    private Authorization createAuthorization(final TestElement[] testElements, HTTPSamplerBase sampler, SampleResult result) {
+    private Authorization createAuthorization(final TestElement[] testElements, SampleResult result) {
         Header authHeader;
         Authorization authorization = null;
         // Iterate over subconfig elements searching for HeaderManager