]> git.lizzy.rs Git - rust.git/commitdiff
Remove unused methods on the private Wtf8 type
authorSimon Sapin <simon.sapin@exyr.org>
Sat, 7 Apr 2018 09:12:35 +0000 (11:12 +0200)
committerSimon Sapin <simon.sapin@exyr.org>
Sat, 21 Apr 2018 07:45:18 +0000 (09:45 +0200)
The type and its direct parent module are `pub`, but they’re not reachable outside of std

src/libstd/sys_common/wtf8.rs

index dda4e1bab3b42f2b916de2ca7c2379443c2b78e4..fe7e058091ed5fe1c6cf871817f879892f5ead2d 100644 (file)
@@ -876,21 +876,7 @@ fn hash<H: Hasher>(&self, state: &mut H) {
 }
 
 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)]