diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2024-08-30 22:21:03 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2024-09-03 16:11:03 +0200 |
commit | b4bdf9841c286116955b2b31f776af2339950036 (patch) | |
tree | 5bec116eacce5f715dd206ba1f92f7379fb07b23 /org.eclipse.jgit.ssh.jsch/src/org/eclipse/jgit | |
parent | 0ae586b81fa5deb46633ccaa29607f565587d841 (diff) | |
download | jgit-b4bdf9841c286116955b2b31f776af2339950036.tar.gz jgit-b4bdf9841c286116955b2b31f776af2339950036.zip |
Remove deprecated JschSession#getSftpChannel method
Change-Id: I5b5d3cbc6b0e5f85df26fe6c288c973cf5609296
Diffstat (limited to 'org.eclipse.jgit.ssh.jsch/src/org/eclipse/jgit')
-rw-r--r-- | org.eclipse.jgit.ssh.jsch/src/org/eclipse/jgit/transport/ssh/jsch/JschSession.java | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/org.eclipse.jgit.ssh.jsch/src/org/eclipse/jgit/transport/ssh/jsch/JschSession.java b/org.eclipse.jgit.ssh.jsch/src/org/eclipse/jgit/transport/ssh/jsch/JschSession.java index 5f36dadc04..ad58ae1c8e 100644 --- a/org.eclipse.jgit.ssh.jsch/src/org/eclipse/jgit/transport/ssh/jsch/JschSession.java +++ b/org.eclipse.jgit.ssh.jsch/src/org/eclipse/jgit/transport/ssh/jsch/JschSession.java @@ -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; @@ -86,22 +85,6 @@ public class JschSession implements RemoteSession2 { } /** - * 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} * * @since 5.2 |