Remove unused base_dir method and default_paths test
QuireCi::base_dir() was only called from a single test. Removed
both to keep the module minimal.

Assisted-by: Owl Alpha via pi
change xvlkwotqnmmowtulvzouqmwllsowlqxt
commit b16137a6cf516396a377ceaffbc85f04fee3bea1
author Alpha Chen <alpha@kejadlen.dev>
date
parent vxllsoss
diff --git a/quire-ci/src/quire.rs b/quire-ci/src/quire.rs
index c57300d..18149f8 100644
--- a/quire-ci/src/quire.rs
+++ b/quire-ci/src/quire.rs
@@ -1,4 +1,4 @@
-use std::path::{Path, PathBuf};
+use std::path::PathBuf;
 
 use miette::{Result, ensure};
 
@@ -37,11 +37,6 @@ impl QuireCi {
         Self { base_dir }
     }
 
-    #[allow(dead_code)]
-    pub fn base_dir(&self) -> &Path {
-        &self.base_dir
-    }
-
     pub fn config_path(&self) -> PathBuf {
         self.base_dir.join("config.fnl")
     }
@@ -63,17 +58,6 @@ impl QuireCi {
 mod tests {
     use super::*;
 
-    fn quire() -> QuireCi {
-        QuireCi::new(PathBuf::from("/var/quire-ci"))
-    }
-
-    #[test]
-    fn default_paths() {
-        let q = quire();
-        assert_eq!(q.base_dir(), Path::new("/var/quire-ci"));
-        assert_eq!(q.config_path(), PathBuf::from("/var/quire-ci/config.fnl"));
-    }
-
     #[test]
     fn global_config_defaults() {
         let dir = tempfile::tempdir().expect("tempdir");