Skip to content

Commit 5722567

Browse files
committed
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
1 parent b78853b commit 5722567

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/libstd/sys_common/wtf8.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -876,21 +876,7 @@ impl Hash for Wtf8 {
876876
}
877877

878878
impl Wtf8 {
879-
pub fn is_ascii(&self) -> bool {
880-
self.bytes.is_ascii()
881-
}
882-
pub fn to_ascii_uppercase(&self) -> Wtf8Buf {
883-
Wtf8Buf { bytes: self.bytes.to_ascii_uppercase() }
884-
}
885-
pub fn to_ascii_lowercase(&self) -> Wtf8Buf {
886-
Wtf8Buf { bytes: self.bytes.to_ascii_lowercase() }
887-
}
888-
pub fn eq_ignore_ascii_case(&self, other: &Wtf8) -> bool {
889-
self.bytes.eq_ignore_ascii_case(&other.bytes)
890-
}
891-
892879
pub fn make_ascii_uppercase(&mut self) { self.bytes.make_ascii_uppercase() }
893-
pub fn make_ascii_lowercase(&mut self) { self.bytes.make_ascii_lowercase() }
894880
}
895881

896882
#[cfg(test)]

0 commit comments

Comments
 (0)