desktoplog: drop an unused constructor

This commit is contained in:
Niko1221 committed 2026-10-18 03:24:55 +02:00
1 parent 4306182741
commit 00d2f12a2d
1 file changed
-4
-4
View File
@@ -104,10 +104,6 @@ impl Log {
log.line("shell", &format!("Strata desktop {} starting (pid {})", env!("CARGO_PKG_VERSION"), std::process::id()));
log
}
/// A log that writes nowhere (tests).
pub fn none() -> Log {
Log { file: Arc::new(Mutex::new(None)), path: None }
}
pub fn line(&self, who: &str, text: &str) {
if let Some(f) = self.file.lock().unwrap().as_mut() {
let _ = writeln!(f, "[{who}] {text}");