From 56688121d3ea29887e1735670693ce2f40550736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 3 May 2018 18:41:17 +0200 Subject: [PATCH] style: Remove a bit of trivially dead code. Bug: 1458814 Reviewed-by: hiro MozReview-Commit-ID: GG41v4TejBU --- ports/geckolib/glue.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index d4e16a470e5..374941161f6 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -4520,7 +4520,6 @@ pub extern "C" fn Servo_GetComputedKeyframeValues( raw_data: RawServoStyleSetBorrowed, computed_keyframes: RawGeckoComputedKeyframeValuesListBorrowedMut ) { - use std::mem; use style::properties::LonghandIdSet; let data = PerDocumentStyleData::from_ffi(raw_data).borrow(); @@ -4581,10 +4580,6 @@ pub extern "C" fn Servo_GetComputedKeyframeValues( // This is safe since we immediately write to the uninitialized values. unsafe { animation_values.set_len((property_index + 1) as u32) }; animation_values[property_index].mProperty = property.to_nscsspropertyid(); - // We only make sure we have enough space for this variable, - // but didn't construct a default value for StyleAnimationValue, - // so we should zero it to avoid getting undefined behaviors. - animation_values[property_index].mValue.mGecko = unsafe { mem::zeroed() }; match value { Some(v) => { animation_values[property_index].mValue.mServo.set_arc_leaky(Arc::new(v));