]> source.dussan.org Git - jgit.git/commitdiff
Remove deprecated RemoteSetUrlCommand#setPush method 44/1200244/2
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 30 Aug 2024 14:42:59 +0000 (16:42 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 3 Sep 2024 13:51:09 +0000 (13:51 +0000)
Change-Id: I4026531148a7560179dae89c05424f256e6600d2

org.eclipse.jgit/src/org/eclipse/jgit/api/RemoteSetUrlCommand.java

index 281e81026b6738a108e10291cbaf244ca101c16e..b09742cba9036b762a9e78f2b6a11ff3ae19c23e 100644 (file)
@@ -106,23 +106,6 @@ public class RemoteSetUrlCommand extends GitCommand<RemoteConfig> {
                return this;
        }
 
-       /**
-        * Whether to change the push URL of the remote instead of the fetch URL.
-        *
-        * @param push
-        *            <code>true</code> to set the push url, <code>false</code> to
-        *            set the fetch url
-        * @deprecated use {@link #setUriType} instead
-        */
-       @Deprecated
-       public void setPush(boolean push) {
-               if (push) {
-                       setUriType(UriType.PUSH);
-               } else {
-                       setUriType(UriType.FETCH);
-               }
-       }
-
        /**
         * Whether to change the push URL of the remote instead of the fetch URL.
         *