Squash some build warnings.

This commit is contained in:
Ms2ger 2016-10-04 16:36:34 +02:00
parent b80769dbf5
commit ef25c86cd7
2 changed files with 2 additions and 4 deletions

View file

@ -25,7 +25,6 @@ use style::refcell::Ref;
use url::form_urlencoded;
pub enum BodyType {
ArrayBuffer,
Blob,
FormData,
Json,
@ -92,7 +91,6 @@ fn run_package_data_algorithm<T: BodyOperations + Reflectable>(object: &T,
BodyType::Json => run_json_data_algorithm(cx, bytes),
BodyType::Blob => run_blob_data_algorithm(object.global().r(), bytes, mime),
BodyType::FormData => run_form_data_algorithm(object.global().r(), bytes, mime),
_ => Err(Error::Type("Unable to process body type".to_string()))
}
}