From 4dd48a708066defad3f11398d8911525f3d72291 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Thu, 29 Oct 2015 09:32:51 -0700 Subject: [PATCH] Remove some unused code on Android --- components/servo/main.rs | 2 -- components/util/lib.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/components/servo/main.rs b/components/servo/main.rs index 3e81da46f1f..34c9bfe3d90 100644 --- a/components/servo/main.rs +++ b/components/servo/main.rs @@ -31,8 +31,6 @@ use servo::Browser; use servo::compositing::windowing::WindowEvent; use servo::net_traits::hosts; use servo::util::opts; -#[cfg(target_os = "android")] -use std::borrow::ToOwned; use std::rc::Rc; fn main() { diff --git a/components/util/lib.rs b/components/util/lib.rs index 5cfda0e8c7c..850998408f1 100644 --- a/components/util/lib.rs +++ b/components/util/lib.rs @@ -11,7 +11,7 @@ #![feature(heap_api)] #![feature(oom)] #![feature(optin_builtin_traits)] -#![feature(path_ext)] +#![cfg_attr(not(target_os = "android"), feature(path_ext))] #![feature(plugin)] #![feature(slice_splits)] #![feature(step_by)]