Skip to content

Commit

Permalink
Remove deprecated JschSession#getSftpChannel method
Browse files Browse the repository at this point in the history
Change-Id: I5b5d3cbc6b0e5f85df26fe6c288c973cf5609296
  • Loading branch information
msohn committed Sep 3, 2024
1 parent 0ae586b commit b4bdf98
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
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;
Expand Down Expand Up @@ -85,22 +84,6 @@ public void disconnect() {
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}
*
Expand Down

0 comments on commit b4bdf98

Please sign in to comment.