]> source.dussan.org Git - jgit.git/commitdiff
Remove deprecated JschSession#getSftpChannel method 48/1200448/2
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 30 Aug 2024 20:21:03 +0000 (22:21 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 3 Sep 2024 14:11:03 +0000 (16:11 +0200)
Change-Id: I5b5d3cbc6b0e5f85df26fe6c288c973cf5609296

org.eclipse.jgit.ssh.jsch/src/org/eclipse/jgit/transport/ssh/jsch/JschSession.java

index 5f36dadc04c7852d82b60a83ba15890d22eabe2a..ad58ae1c8e2bf211f75b0c20752a90953aeec80a 100644 (file)
@@ -34,7 +34,6 @@ import org.eclipse.jgit.transport.RemoteSession2;
 import org.eclipse.jgit.transport.URIish;
 import org.eclipse.jgit.util.io.IsolatedOutputStream;
 
-import com.jcraft.jsch.Channel;
 import com.jcraft.jsch.ChannelExec;
 import com.jcraft.jsch.ChannelSftp;
 import com.jcraft.jsch.JSchException;
@@ -85,22 +84,6 @@ public class JschSession implements RemoteSession2 {
                        sock.disconnect();
        }
 
-       /**
-        * A kludge to allow {@link org.eclipse.jgit.transport.TransportSftp} to get
-        * an Sftp channel from Jsch. Ideally, this method would be generic, which
-        * would require implementing generic Sftp channel operations in the
-        * RemoteSession class.
-        *
-        * @return a channel suitable for Sftp operations.
-        * @throws com.jcraft.jsch.JSchException
-        *             on problems getting the channel.
-        * @deprecated since 5.2; use {@link #getFtpChannel()} instead
-        */
-       @Deprecated
-       public Channel getSftpChannel() throws JSchException {
-               return sock.openChannel("sftp"); //$NON-NLS-1$
-       }
-
        /**
         * {@inheritDoc}
         *