aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/str.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-06-07 14:20:44 +0200
committerMs2ger <Ms2ger@gmail.com>2016-06-07 14:20:44 +0200
commitaea03b2f921a41bf78791a877539f1fafab887dd (patch)
treef204f4107f5049781d864a0e4343982923358b25 /components/script/dom/bindings/str.rs
parent80fc66673473910ec325eb35d1e2e040f9e5277a (diff)
downloadservo-aea03b2f921a41bf78791a877539f1fafab887dd.tar.gz
servo-aea03b2f921a41bf78791a877539f1fafab887dd.zip
Remove unused ByteString::bytes() and its unit test.
Diffstat (limited to 'components/script/dom/bindings/str.rs')
-rw-r--r--components/script/dom/bindings/str.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/components/script/dom/bindings/str.rs b/components/script/dom/bindings/str.rs
index 3ee685fbe02..69565520899 100644
--- a/components/script/dom/bindings/str.rs
+++ b/components/script/dom/bindings/str.rs
@@ -8,7 +8,6 @@ use std::ascii::AsciiExt;
use std::borrow::ToOwned;
use std::fmt;
use std::hash::{Hash, Hasher};
-use std::mem;
use std::ops;
use std::ops::{Deref, DerefMut};
use std::str;
@@ -31,12 +30,6 @@ impl ByteString {
str::from_utf8(&self.0).ok()
}
- /// Returns ownership of the underlying Vec<u8> and copies an empty
- /// vec in its place
- pub fn bytes(&mut self) -> Vec<u8> {
- mem::replace(&mut self.0, Vec::new())
- }
-
/// Returns the length.
pub fn len(&self) -> usize {
self.0.len()