Skip to content

Commit fb105d2

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 f9f9050 commit fb105d2

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/libstd/sys_common/wtf8.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -875,24 +875,6 @@ impl Hash for Wtf8 {
875875
}
876876
}
877877

878-
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-
892-
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() }
894-
}
895-
896878
#[cfg(test)]
897879
mod tests {
898880
use borrow::Cow;

0 commit comments

Comments
 (0)