Remove string_cache dependency from util.

Move `namespace::from_domstring` from util to script::dom, because it is used
only in that crate.
This commit is contained in:
Matt Brubeck 2015-07-01 09:55:23 -07:00
parent efa60d3a24
commit 13072c7b0c
11 changed files with 21 additions and 42 deletions

View file

@ -32,6 +32,4 @@ num_cpus = "0.2.2"
cssparser = "0.3.1"
num = "0.1.24"
url = "*"
string_cache = "0.1"
string_cache_plugin = "0.1"
euclid = "0.1"

View file

@ -18,8 +18,6 @@
#![feature(step_trait)]
#![feature(zero_one)]
#![plugin(string_cache_plugin)]
#[macro_use] extern crate log;
extern crate azure;
@ -34,7 +32,6 @@ extern crate num_cpus;
extern crate rand;
extern crate rustc_serialize;
extern crate smallvec;
extern crate string_cache;
extern crate url;
use std::sync::Arc;
@ -48,7 +45,6 @@ pub mod linked_list;
pub mod geometry;
pub mod logical_geometry;
pub mod mem;
pub mod namespace;
pub mod opts;
pub mod persistent_list;
pub mod range;

View file

@ -1,14 +0,0 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use str::DOMString;
use string_cache::{Atom, Namespace};
pub fn from_domstring(url: Option<DOMString>) -> Namespace {
match url {
None => ns!(""),
Some(ref s) => Namespace(Atom::from_slice(s)),
}
}