Skip to content

Commit a3f7812

Browse files
authored
Merge pull request #402 from cakebaker/w_remove_unused_function
w: remove unused function
2 parents 6b3a789 + fe4bdee commit a3f7812

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/uu/w/src/w.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,6 @@ fn fetch_idle_time(tty: String) -> Result<Duration, std::io::Error> {
9797
}
9898
}
9999

100-
#[cfg(not(target_os = "linux"))]
101-
fn _fetch_idle_time(_tty: String) -> Result<Duration, std::io::Error> {
102-
Ok(Duration::ZERO)
103-
}
104-
105100
fn format_time_elapsed(time: Duration, old_style: bool) -> Result<String, chrono::OutOfRangeError> {
106101
let t = chrono::Duration::from_std(time)?;
107102
if t.num_days() >= 2 {

0 commit comments

Comments
 (0)