aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/lib.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-07-11 12:13:12 +0200
committerMs2ger <Ms2ger@gmail.com>2016-07-11 12:13:12 +0200
commit9f13278b77d3a740f6ae740c1eb8cb44591a0cac (patch)
tree02aeb230526e6e5c678c0fc8bec65e9a0a12ee2d /components/util/lib.rs
parent8ded106186aa0855a2bd991d573e7095590efca1 (diff)
downloadservo-9f13278b77d3a740f6ae740c1eb8cb44591a0cac.tar.gz
servo-9f13278b77d3a740f6ae740c1eb8cb44591a0cac.zip
Move arc_ptr_eq to style.
Diffstat (limited to 'components/util/lib.rs')
-rw-r--r--components/util/lib.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/components/util/lib.rs b/components/util/lib.rs
index bcad9ea3705..2e57d5a5f4b 100644
--- a/components/util/lib.rs
+++ b/components/util/lib.rs
@@ -26,8 +26,6 @@ extern crate url;
#[cfg(all(unix, not(target_os = "macos"), not(target_os = "ios"), not(target_os = "android")))]
extern crate xdg;
-use std::sync::Arc;
-
pub mod basedir;
pub mod geometry;
#[cfg(feature = "servo")] #[allow(unsafe_code)] pub mod ipc;
@@ -38,14 +36,6 @@ pub mod resource_files;
pub mod thread;
pub mod thread_state;
-// Workaround for lack of `ptr_eq` on Arcs...
-#[inline]
-pub fn arc_ptr_eq<T: 'static>(a: &Arc<T>, b: &Arc<T>) -> bool {
- let a: &T = &**a;
- let b: &T = &**b;
- (a as *const T) == (b as *const T)
-}
-
pub fn servo_version() -> &'static str {
concat!("Servo ", env!("CARGO_PKG_VERSION"), env!("GIT_INFO"))
}