Skip to content

Commit 36e8048

Browse files
committed
refactor(rm): remove non-unix stub for should_skip_different_device_with_dev
Removed the #[cfg(not(unix))] implementation of should_skip_different_device_with_dev as it's unnecessary and simplifies the codebase by relying on the Unix-specific logic.
1 parent 584f900 commit 36e8048

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/uu/rm/src/rm.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -651,16 +651,6 @@ fn should_skip_different_device_with_dev(
651651
false
652652
}
653653

654-
#[cfg(not(unix))]
655-
fn should_skip_different_device_with_dev(
656-
_parent_dev_id: Option<u64>,
657-
_dev_id: u64,
658-
_options: &Options,
659-
_path: &Path,
660-
) -> bool {
661-
false
662-
}
663-
664654
#[cfg(unix)]
665655
fn compute_next_parent_dev_id(options: &Options, metadata: &Metadata) -> Option<u64> {
666656
if options.one_fs || options.preserve_root_all {

0 commit comments

Comments
 (0)