Browse Source

chore: remove some leftover, unused code

ariasuni 3 weeks ago
parent
commit
c0fe456ba5
2 changed files with 0 additions and 20 deletions
  1. 0 10
      src/fs/fields.rs
  2. 0 10
      src/options/error.rs

+ 0 - 10
src/fs/fields.rs

@@ -31,9 +31,6 @@ pub type ino_t = u64;
 #[allow(unused)]
 pub type nlink_t = u64;
 
-/// The type of a file’s timestamp (creation, modification, access, etc).
-pub type time_t = i64;
-
 /// The type of a file’s user ID.
 #[allow(unused)]
 pub type uid_t = u32;
@@ -206,13 +203,6 @@ pub struct DeviceIDs {
     pub minor: u32,
 }
 
-/// One of a file’s timestamps (created, accessed, or modified).
-#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord)]
-pub struct Time {
-    pub seconds: time_t,
-    pub nanoseconds: time_t,
-}
-
 /// A file’s status in a Git repository. Whether a file is in a repository or
 /// not is handled by the Git module, rather than having a “null” variant in
 /// this enum.

+ 0 - 10
src/options/error.rs

@@ -84,13 +84,3 @@ impl fmt::Display for OptionsError {
         };
     }
 }
-
-/// A list of legal choices for an argument-taking option.
-#[derive(PartialEq, Eq, Debug)]
-pub struct Choices(pub &'static [&'static str]);
-
-impl fmt::Display for Choices {
-    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
-        write!(f, "choices: {}", self.0.join(", "))
-    }
-}