mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
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:
parent
efa60d3a24
commit
13072c7b0c
11 changed files with 21 additions and 42 deletions
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)),
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue