You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/06/21 11:42:20 UTC

[camel] 04/05: (chores) camel-netty-http: removed unused parameters

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

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 00a8f4a229545a4c92e0f9e5daeef0617a4bdf9e
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Jun 21 09:16:23 2022 +0200

    (chores) camel-netty-http: removed unused parameters
---
 .../java/org/apache/camel/component/netty/http/NettyHttpHelper.java    | 3 +--
 .../java/org/apache/camel/component/netty/http/NettyHttpProducer.java  | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpHelper.java b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpHelper.java
index 3c4fdec9475..c5523bf57b6 100644
--- a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpHelper.java
+++ b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpHelper.java
@@ -236,10 +236,9 @@ public final class NettyHttpHelper {
      *
      * @param  exchange the exchange
      * @param  url      the url to invoke
-     * @param  endpoint the endpoint
      * @return          the URI to invoke
      */
-    public static URI createURI(Exchange exchange, String url, NettyHttpEndpoint endpoint) throws URISyntaxException {
+    public static URI createURI(Exchange exchange, String url) throws URISyntaxException {
         URI uri = new URI(url);
 
         // rest producer may provide an override query string to be used which we should discard if using (hence the remove)
diff --git a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpProducer.java b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpProducer.java
index c96c0c73698..0baa9b67b36 100644
--- a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpProducer.java
+++ b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpProducer.java
@@ -91,7 +91,7 @@ public class NettyHttpProducer extends NettyProducer {
         // creating the url to use takes 2-steps
         final NettyHttpEndpoint endpoint = getEndpoint();
         final String uri = NettyHttpHelper.createURL(exchange, endpoint);
-        final URI u = NettyHttpHelper.createURI(exchange, uri, endpoint);
+        final URI u = NettyHttpHelper.createURI(exchange, uri);
 
         final NettyHttpBinding nettyHttpBinding = endpoint.getNettyHttpBinding();
         final HttpRequest request = nettyHttpBinding.toNettyRequest(exchange.getIn(), u.toString(), getConfiguration());