chiark / gitweb /
wdriver: Remove an unused field
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 6 Mar 2022 11:48:18 +0000 (11:48 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 6 Mar 2022 11:48:18 +0000 (11:48 +0000)
This was just here for possible use in error messages but we use name
instead.

wdriver/wdriver.rs

index f0d190a7246a38741f4c5ec4fbc9d3eeb4301274..1b32cfba1a861a7465881dbf4ee73ea18390ca45 100644 (file)
@@ -175,7 +175,6 @@ pub type JsLogfile = Rc<RefCell<JsLogfileImp>>;
 #[derive(Debug)]
 pub struct JsLogfileImp {
   name: String,
-  path: String,
   fh: File,
   counter: usize,
 }
@@ -189,7 +188,7 @@ impl JsLogfileImp {
     let name = name.to_owned();
     let fh = File::create(&path).with_context(|| path.clone())?;
     let counter = 0;
-    JsLogfileImp { name, path, fh, counter }
+    JsLogfileImp { name, fh, counter }
   }
 
   pub fn name(&self) -> String {