remove rarely used is_token method from ByteString

This commit is contained in:
Tim Neumann 2016-02-16 20:50:03 +01:00
parent 90c7b78b12
commit 3af3926d63
2 changed files with 3 additions and 9 deletions

View file

@ -49,12 +49,6 @@ impl ByteString {
ByteString::new(self.0.to_ascii_lowercase())
}
/// Returns whether `self` is a `token`, as defined by
/// [RFC 2616](http://tools.ietf.org/html/rfc2616#page-17).
pub fn is_token(&self) -> bool {
is_token(&self.0)
}
/// Returns whether `self` is a `field-value`, as defined by
/// [RFC 2616](http://tools.ietf.org/html/rfc2616#page-32).
pub fn is_field_value(&self) -> bool {