aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2024-08-30 21:54:50 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2024-09-03 16:11:03 +0200
commit88053eedcc89d6fded81e5edb39ae41d237ba3dd (patch)
tree246f8909a951d205a761d566386eaac5a6a7190c
parentd64e09230c8bf1edae9566da15dd71b17d37b110 (diff)
downloadjgit-88053eedcc89d6fded81e5edb39ae41d237ba3dd.tar.gz
jgit-88053eedcc89d6fded81e5edb39ae41d237ba3dd.zip
UserAgent: remove deprecated #getAgent, #hasAgent methods
Change-Id: Ib53de6dabea7f73ecfde85cb30f49fa05ee48551
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/UserAgent.java41
1 files changed, 0 insertions, 41 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UserAgent.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UserAgent.java
index 7b052ad4a7..b23ee97dcb 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UserAgent.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UserAgent.java
@@ -10,10 +10,6 @@
package org.eclipse.jgit.transport;
-import static org.eclipse.jgit.transport.GitProtocolConstants.OPTION_AGENT;
-
-import java.util.Set;
-
import org.eclipse.jgit.util.StringUtils;
/**
@@ -91,43 +87,6 @@ public class UserAgent {
userAgent = StringUtils.isEmptyOrNull(agent) ? null : clean(agent);
}
- /**
- *
- * @param options
- * options
- * @param transportAgent
- * name of transport agent
- * @return The transport agent.
- * @deprecated Capabilities with &lt;key&gt;=&lt;value&gt; shape are now
- * parsed alongside other capabilities in the ReceivePack flow.
- */
- @Deprecated
- static String getAgent(Set<String> options, String transportAgent) {
- if (options == null || options.isEmpty()) {
- return transportAgent;
- }
- for (String o : options) {
- if (o.startsWith(OPTION_AGENT)
- && o.length() > OPTION_AGENT.length()
- && o.charAt(OPTION_AGENT.length()) == '=') {
- return o.substring(OPTION_AGENT.length() + 1);
- }
- }
- return transportAgent;
- }
-
- /**
- *
- * @param options
- * options
- * @return True if the transport agent is set. False otherwise.
- * @deprecated Capabilities with &lt;key&gt;=&lt;value&gt; shape are now
- * parsed alongside other capabilities in the ReceivePack flow.
- */
- @Deprecated
- static boolean hasAgent(Set<String> options) {
- return getAgent(options, null) != null;
- }
private UserAgent() {
}