Skip to content

Commit b4bdf98

Browse files
committed
Remove deprecated JschSession#getSftpChannel method
Change-Id: I5b5d3cbc6b0e5f85df26fe6c288c973cf5609296
1 parent 0ae586b commit b4bdf98

File tree

1 file changed

+0
-17
lines changed
  • org.eclipse.jgit.ssh.jsch/src/org/eclipse/jgit/transport/ssh/jsch

1 file changed

+0
-17
lines changed

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

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import org.eclipse.jgit.transport.URIish;
3535
import org.eclipse.jgit.util.io.IsolatedOutputStream;
3636

37-
import com.jcraft.jsch.Channel;
3837
import com.jcraft.jsch.ChannelExec;
3938
import com.jcraft.jsch.ChannelSftp;
4039
import com.jcraft.jsch.JSchException;
@@ -85,22 +84,6 @@ public void disconnect() {
8584
sock.disconnect();
8685
}
8786

88-
/**
89-
* A kludge to allow {@link org.eclipse.jgit.transport.TransportSftp} to get
90-
* an Sftp channel from Jsch. Ideally, this method would be generic, which
91-
* would require implementing generic Sftp channel operations in the
92-
* RemoteSession class.
93-
*
94-
* @return a channel suitable for Sftp operations.
95-
* @throws com.jcraft.jsch.JSchException
96-
* on problems getting the channel.
97-
* @deprecated since 5.2; use {@link #getFtpChannel()} instead
98-
*/
99-
@Deprecated
100-
public Channel getSftpChannel() throws JSchException {
101-
return sock.openChannel("sftp"); //$NON-NLS-1$
102-
}
103-
10487
/**
10588
* {@inheritDoc}
10689
*

0 commit comments

Comments
 (0)