aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2014-01-09 20:39:09 -0800
committerSteven Fackler <[email protected]>2014-01-09 20:39:09 -0800
commitbe3c164f8f97ec713f08c3436c4def8a51b214ba (patch)
treeb9e69d3bd254aa53ab0c9f0e21218bd217c001b4
parentRemove spurious extern "Rust" specifier (diff)
downloadrust-openssl-be3c164f8f97ec713f08c3436c4def8a51b214ba.tar.xz
rust-openssl-be3c164f8f97ec713f08c3436c4def8a51b214ba.zip
Update for API changes
-rw-r--r--ssl/mod.rs20
1 files changed, 1 insertions, 19 deletions
diff --git a/ssl/mod.rs b/ssl/mod.rs
index 6bfb2229..834edeb3 100644
--- a/ssl/mod.rs
+++ b/ssl/mod.rs
@@ -3,7 +3,7 @@ use std::libc::{c_int, c_void, c_char};
use std::ptr;
use std::unstable::finally::Finally;
use std::unstable::mutex::{Mutex, MUTEX_INIT};
-use std::io::{Stream, Reader, Writer, Decorator};
+use std::io::{Stream, Reader, Writer};
use std::vec;
use ssl::error::{SslError, SslSessionClosed, StreamEof};
@@ -509,10 +509,6 @@ impl<S: Stream> Reader for SslStream<S> {
_ => unreachable!()
}
}
-
- fn eof(&mut self) -> bool {
- self.stream.eof()
- }
}
impl<S: Stream> Writer for SslStream<S> {
@@ -535,17 +531,3 @@ impl<S: Stream> Writer for SslStream<S> {
self.stream.flush()
}
}
-
-impl<S> Decorator<S> for SslStream<S> {
- fn inner(self) -> S {
- self.stream
- }
-
- fn inner_ref<'a>(&'a self) -> &'a S {
- &self.stream
- }
-
- fn inner_mut_ref<'a>(&'a mut self) -> &'a mut S {
- &mut self.stream
- }
-}