summaryrefslogtreecommitdiffstats
path: root/src/http/sse.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/sse.rs')
-rw-r--r--src/http/sse.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/http/sse.rs b/src/http/sse.rs
index 39266be..bceba9f 100644
--- a/src/http/sse.rs
+++ b/src/http/sse.rs
@@ -117,19 +117,3 @@ fn read_from(path: &Path, offset: u64) -> (Vec<u8>, bool) {
let grew = !buf.is_empty();
(buf, grew)
}
-
-pub struct FileBody {
- inner: std::io::Cursor<Vec<u8>>,
-}
-
-impl FileBody {
- pub fn new(bytes: Vec<u8>) -> Self {
- Self { inner: std::io::Cursor::new(bytes) }
- }
-}
-
-impl Read for FileBody {
- fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
- self.inner.read(buf)
- }
-}