summaryrefslogtreecommitdiffstats
path: root/src/file.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/file.rs')
-rw-r--r--src/file.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/file.rs b/src/file.rs
index dd105b2..53265d7 100644
--- a/src/file.rs
+++ b/src/file.rs
@@ -8,7 +8,6 @@ use std::os::unix::fs::{MetadataExt, PermissionsExt};
use std::path::{Component, Path, PathBuf};
use dir::Dir;
-use output::DisplayWidth;
use self::fields as f;
@@ -179,15 +178,6 @@ impl<'dir> File<'dir> {
path_prefix
}
- /// The Unicode 'display width' of the filename.
- ///
- /// This is related to the number of graphemes in the string: most
- /// characters are 1 columns wide, but in some contexts, certain
- /// characters are actually 2 columns wide.
- pub fn file_name_width(&self) -> DisplayWidth {
- DisplayWidth::from(&*self.name)
- }
-
/// Assuming the current file is a symlink, follows the link and
/// returns a File object from the path the link points to.
///