1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Remove unused nlink

Now that --apparent-size does not use stat.nlink * stat.size, nlink is not used anywhere in du and can be removed from what I can see.
This commit is contained in:
E5ten 2018-10-30 10:49:08 -04:00 committed by GitHub
parent b8dbefcb71
commit cc8899cb5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,6 @@ struct Stat {
is_dir: bool,
size: u64,
blocks: u64,
nlink: u64,
inode: u64,
created: u64,
accessed: u64,
@ -69,7 +68,6 @@ impl Stat {
is_dir: metadata.is_dir(),
size: metadata.len(),
blocks: metadata.blocks() as u64,
nlink: metadata.nlink() as u64,
inode: metadata.ino() as u64,
created: metadata.mtime() as u64,
accessed: metadata.atime() as u64,