]> source.dussan.org Git - jgit.git/commitdiff
Remove deprecated class ReceivePack.FirstLine 08/1200408/2
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 30 Aug 2024 15:50:59 +0000 (17:50 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 3 Sep 2024 14:11:03 +0000 (16:11 +0200)
Change-Id: I1143612088dba4fdced8f14c97293d17ff9658bb

org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java

index ddde6038e9c2a77cf1c49d4cbfd53b1f5325330d..21752a1294e8cbc1eaa852ab4bc1e4fc6801bef6 100644 (file)
@@ -88,52 +88,6 @@ import org.eclipse.jgit.util.io.TimeoutOutputStream;
  * Implements the server side of a push connection, receiving objects.
  */
 public class ReceivePack {
-       /**
-        * Data in the first line of a request, the line itself plus capabilities.
-        *
-        * @deprecated Use {@link FirstCommand} instead.
-        * @since 5.6
-        */
-       @Deprecated
-       public static class FirstLine {
-               private final FirstCommand command;
-
-               /**
-                * Parse the first line of a receive-pack request.
-                *
-                * @param line
-                *            line from the client.
-                */
-               public FirstLine(String line) {
-                       command = FirstCommand.fromLine(line);
-               }
-
-               /**
-                * Get non-capabilities part of the line
-                *
-                * @return non-capabilities part of the line.
-                */
-               public String getLine() {
-                       return command.getLine();
-               }
-
-               /**
-                * Get capabilities parsed from the line
-                *
-                * @return capabilities parsed from the line.
-                */
-               public Set<String> getCapabilities() {
-                       Set<String> reconstructedCapabilites = new HashSet<>();
-                       for (Map.Entry<String, String> e : command.getCapabilities()
-                                       .entrySet()) {
-                               String cap = e.getValue() == null ? e.getKey()
-                                               : e.getKey() + "=" + e.getValue(); //$NON-NLS-1$
-                               reconstructedCapabilites.add(cap);
-                       }
-
-                       return reconstructedCapabilites;
-               }
-       }
 
        /** Database we write the stored objects into. */
        private final Repository db;