diff --git a/src/main/java/net/schmizz/sshj/connection/channel/direct/Session.java b/src/main/java/net/schmizz/sshj/connection/channel/direct/Session.java index a5cef83a..5ceb93ca 100644 --- a/src/main/java/net/schmizz/sshj/connection/channel/direct/Session.java +++ b/src/main/java/net/schmizz/sshj/connection/channel/direct/Session.java @@ -19,7 +19,6 @@ import net.schmizz.sshj.connection.ConnectionException; import net.schmizz.sshj.connection.channel.Channel; import net.schmizz.sshj.transport.TransportException; -import java.io.IOException; import java.io.InputStream; import java.util.Map; @@ -81,14 +80,6 @@ public interface Session void signal(Signal signal) throws TransportException; - @Deprecated - String getOutputAsString() - throws IOException; - - @Deprecated - String getErrorAsString() - throws IOException; - } /** Shell API. */ diff --git a/src/main/java/net/schmizz/sshj/connection/channel/direct/SessionChannel.java b/src/main/java/net/schmizz/sshj/connection/channel/direct/SessionChannel.java index 4354abe0..e86e738a 100644 --- a/src/main/java/net/schmizz/sshj/connection/channel/direct/SessionChannel.java +++ b/src/main/java/net/schmizz/sshj/connection/channel/direct/SessionChannel.java @@ -46,7 +46,6 @@ import net.schmizz.sshj.connection.ConnectionException; import net.schmizz.sshj.connection.channel.ChannelInputStream; import net.schmizz.sshj.transport.TransportException; -import java.io.IOException; import java.io.InputStream; import java.util.Collections; import java.util.Map; @@ -255,18 +254,4 @@ public class SessionChannel throw new SSHRuntimeException("This session channel is all used up"); } - @Override - @Deprecated - public String getOutputAsString() - throws IOException { - return IOUtils.readFully(getInputStream()).toString(); - } - - @Override - @Deprecated - public String getErrorAsString() - throws IOException { - return IOUtils.readFully(getErrorStream()).toString(); - } - }