aboutsummaryrefslogtreecommitdiffstats
path: root/ports
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-05-03 18:41:17 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-05-05 18:53:53 +0200
commit56688121d3ea29887e1735670693ce2f40550736 (patch)
tree17a5fdb8f8d86107bc741d68277d556f51081497 /ports
parent83cb0992db1f0f4f0f8e605d8f131ec506a3ea3c (diff)
downloadservo-56688121d3ea29887e1735670693ce2f40550736.tar.gz
servo-56688121d3ea29887e1735670693ce2f40550736.zip
style: Remove a bit of trivially dead code.
Bug: 1458814 Reviewed-by: hiro MozReview-Commit-ID: GG41v4TejBU
Diffstat (limited to 'ports')
-rw-r--r--ports/geckolib/glue.rs5
1 files changed, 0 insertions, 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));