Skip to content

Commit

Permalink
remove unused trait (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed May 7, 2022
1 parent b3a4547 commit ac913d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion src/freedesktop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pub fn list() -> Result<Vec<TrashItem>, Error> {
}
}

// Get all mountpoints and attemt to find a trash folder in each adding them to the SET of
// Get all mount-points and attempt to find a trash folder in each adding them to the SET of
// trash folders when found one.
let uid = unsafe { libc::getuid() };
let mount_points = get_mount_points()?;
Expand Down
11 changes: 0 additions & 11 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,17 +302,6 @@ pub mod os_limited {

use super::{platform, Error, TrashItem};

pub trait TrashContextExtOsLimited {
fn list() -> Result<Vec<TrashItem>, Error>;
fn purge_all<I>(items: I) -> Result<(), Error>
where
I: IntoIterator<Item = TrashItem>;

fn restore_all<I>(items: I) -> Result<(), Error>
where
I: IntoIterator<Item = TrashItem>;
}

/// Returns all [`TrashItem`]s that are currently in the trash.
///
/// The items are in no particular order and must be sorted when any kind of ordering is required.
Expand Down

0 comments on commit ac913d8

Please sign in to comment.