Remove some dead code.

This commit is contained in:
Simon Sapin 2014-02-01 17:39:09 +01:00
parent 301a057da6
commit 39e781bcc7

View file

@ -27,12 +27,6 @@ pub fn spawn_css_parser(provenance: StylesheetProvenance,
let environment_encoding = UTF_8 as EncodingRef; let environment_encoding = UTF_8 as EncodingRef;
spawn_named("cssparser", proc() { spawn_named("cssparser", proc() {
// TODO: CSS parsing should take a base URL.
let _url = match provenance {
UrlProvenance(ref the_url) => (*the_url).clone(),
InlineProvenance(ref the_url, _) => (*the_url).clone()
};
let sheet = match provenance { let sheet = match provenance {
UrlProvenance(url) => { UrlProvenance(url) => {
debug!("cssparse: loading style sheet at {:s}", url.to_str()); debug!("cssparse: loading style sheet at {:s}", url.to_str());