diff options
author | Nathan Froyd <froydnj@gmail.com> | 2017-06-23 09:50:56 -0400 |
---|---|---|
committer | Nathan Froyd <froydnj@gmail.com> | 2017-06-23 10:39:41 -0400 |
commit | 096cee8ebc42d182376816a3947fa6dad6d0ba9a (patch) | |
tree | 59b87dfad6106a16e131dfcc1e92b229a2c6ee46 /components/layout/lib.rs | |
parent | 567f5e8985c6e4ba86fca85ff8ff46779fe10a4e (diff) | |
download | servo-096cee8ebc42d182376816a3947fa6dad6d0ba9a.tar.gz servo-096cee8ebc42d182376816a3947fa6dad6d0ba9a.zip |
remove various things now that Rust 1.17 is required
std::ptr::eq and Arc::ptr_eq are now usuable, and we can replace a
panic!() with abort().
Diffstat (limited to 'components/layout/lib.rs')
-rw-r--r-- | components/layout/lib.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/components/layout/lib.rs b/components/layout/lib.rs index de8f4755eeb..0b961550974 100644 --- a/components/layout/lib.rs +++ b/components/layout/lib.rs @@ -92,14 +92,6 @@ pub use fragment::Fragment; pub use fragment::SpecificFragmentInfo; pub use self::data::LayoutData; -/// Returns whether the two arguments point to the same value. -/// -/// FIXME: Remove this and use Arc::ptr_eq once we require Rust 1.17 -#[inline] -pub fn arc_ptr_eq<T: 'static>(a: &::std::sync::Arc<T>, b: &::std::sync::Arc<T>) -> bool { - ::style::ptr_eq::<T>(&**a, &**b) -} - // We can't use stylearc for everything in layout, because the Flow stuff uses // weak references. use style::stylearc::Arc as StyleArc; |