diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2018-04-07 11:12:35 +0200 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2018-04-21 09:45:18 +0200 |
| commit | 572256772e10513ff61e9932d421d0a1e4656e02 (patch) | |
| tree | 5d76178d0266e22885dc4e74166e578d75f01d35 /src/libstd | |
| parent | b78853b6fd9597dc42ccf044fed805851d0a6f91 (diff) | |
| download | rust-572256772e10513ff61e9932d421d0a1e4656e02.tar.gz rust-572256772e10513ff61e9932d421d0a1e4656e02.zip | |
Remove unused methods on the private Wtf8 type
The type and its direct parent module are `pub`, but they’re not reachable outside of std
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/sys_common/wtf8.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/libstd/sys_common/wtf8.rs b/src/libstd/sys_common/wtf8.rs index dda4e1bab3b..fe7e058091e 100644 --- a/src/libstd/sys_common/wtf8.rs +++ b/src/libstd/sys_common/wtf8.rs @@ -876,21 +876,7 @@ impl Hash for Wtf8 { } impl Wtf8 { - pub fn is_ascii(&self) -> bool { - self.bytes.is_ascii() - } - pub fn to_ascii_uppercase(&self) -> Wtf8Buf { - Wtf8Buf { bytes: self.bytes.to_ascii_uppercase() } - } - pub fn to_ascii_lowercase(&self) -> Wtf8Buf { - Wtf8Buf { bytes: self.bytes.to_ascii_lowercase() } - } - pub fn eq_ignore_ascii_case(&self, other: &Wtf8) -> bool { - self.bytes.eq_ignore_ascii_case(&other.bytes) - } - pub fn make_ascii_uppercase(&mut self) { self.bytes.make_ascii_uppercase() } - pub fn make_ascii_lowercase(&mut self) { self.bytes.make_ascii_lowercase() } } #[cfg(test)] |
