From f88cca4401db4e276fa50897aa0c9fd54daa2884 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 4 Jan 2024 18:31:16 +0800 Subject: [PATCH] cleanup hosted mode implementation for xous-log --- .../xous-log/src/platform/hosted/implementation.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/services/xous-log/src/platform/hosted/implementation.rs b/services/xous-log/src/platform/hosted/implementation.rs index 8e8f507b6..d52c4c45e 100644 --- a/services/xous-log/src/platform/hosted/implementation.rs +++ b/services/xous-log/src/platform/hosted/implementation.rs @@ -71,20 +71,6 @@ impl OutputWriter { pub fn putc(&self, c: u8) { self.tx.send(ControlMessage::Byte(c)).unwrap(); } - - /// Write a buffer to the output and return the number of - /// bytes written. This is mostly compatible with `std::io::Write`, - /// except it is infallible. - pub fn write(&mut self, buf: &[u8]) -> usize { - for c in buf { - self.putc(*c); - } - buf.len() - } - - pub fn write_all(&mut self, buf: &[u8]) -> core::result::Result { - Ok(self.write(buf)) - } } impl Write for OutputWriter {