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/05/04 09:15:21 UTC
[camel] branch main updated: (chores) code cleanup: remove unused private methods in components
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
The following commit(s) were added to refs/heads/main by this push:
new fe775cbcba5 (chores) code cleanup: remove unused private methods in components
fe775cbcba5 is described below
commit fe775cbcba59c8408b5518408bba3fbb8ce009c2
Author: Otavio R. Piske <an...@gmail.com>
AuthorDate: Tue May 3 21:46:18 2022 +0200
(chores) code cleanup: remove unused private methods in components
---
.../org/apache/camel/component/atom/UpdatedDateFilter.java | 4 ----
.../java/org/apache/camel/component/irc/IrcConfiguration.java | 10 ----------
2 files changed, 14 deletions(-)
diff --git a/components/camel-atom/src/main/java/org/apache/camel/component/atom/UpdatedDateFilter.java b/components/camel-atom/src/main/java/org/apache/camel/component/atom/UpdatedDateFilter.java
index 1e4e69f23e3..c8d8dce7840 100644
--- a/components/camel-atom/src/main/java/org/apache/camel/component/atom/UpdatedDateFilter.java
+++ b/components/camel-atom/src/main/java/org/apache/camel/component/atom/UpdatedDateFilter.java
@@ -40,10 +40,6 @@ public class UpdatedDateFilter implements EntryFilter<Entry> {
this.lastUpdate = lastUpdate;
}
- private Date getLastUpdate() {
- return this.lastUpdate;
- }
-
@Override
public boolean isValidEntry(Entry entry) {
Date updated = entry.getUpdated();
diff --git a/components/camel-irc/src/main/java/org/apache/camel/component/irc/IrcConfiguration.java b/components/camel-irc/src/main/java/org/apache/camel/component/irc/IrcConfiguration.java
index 9faa8b4ad2c..218ca023eaa 100644
--- a/components/camel-irc/src/main/java/org/apache/camel/component/irc/IrcConfiguration.java
+++ b/components/camel-irc/src/main/java/org/apache/camel/component/irc/IrcConfiguration.java
@@ -29,7 +29,6 @@ import org.apache.camel.spi.UriParams;
import org.apache.camel.spi.UriPath;
import org.apache.camel.support.jsse.SSLContextParameters;
import org.apache.camel.util.StringHelper;
-import org.apache.camel.util.UnsafeUriCharactersEncoder;
import org.schwering.irc.lib.ssl.SSLDefaultTrustManager;
import org.schwering.irc.lib.ssl.SSLTrustManager;
import org.slf4j.Logger;
@@ -544,13 +543,4 @@ public class IrcConfiguration implements Cloneable {
//symbol # has to be encoded. otherwise value after '#' won't be propagated into parameters
return uri.replace("#", "%23");
}
-
- private static void addQueryParameter(StringBuilder sb, String key, Object value) {
- sb.append(sb.length() == 0 ? "" : "&");
- sb.append(key);
- if (value != null) {
- String s = value.toString();
- sb.append(s.isEmpty() ? "" : "=" + UnsafeUriCharactersEncoder.encode(s));
- }
- }
}