From 6546fe770bf9f222225a98887452797554bd2990 Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Wed, 13 Apr 2016 16:54:21 -0700 Subject: [PATCH] Remove handling for style structs with no gecko counterpart. This is no longer necessary thanks to all the aligning we've done. --- ports/geckolib/properties.mako.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ports/geckolib/properties.mako.rs b/ports/geckolib/properties.mako.rs index 3a5cc57b052..d5a63915ffd 100644 --- a/ports/geckolib/properties.mako.rs +++ b/ports/geckolib/properties.mako.rs @@ -111,7 +111,6 @@ pub struct ${style_struct.gecko_struct_name}; impl ${style_struct.gecko_struct_name} { #[allow(dead_code, unused_variables)] fn initial() -> Arc { -% if style_struct.gecko_ffi_name: // Some Gecko style structs have AutoTArray members, which have internal pointers and are // thus MOZ_NON_MEMMOVABLE. Since Rust is generally a very move-happy language, we need to // be very careful that nsStyle* structs are never moved after they are constructed. @@ -128,9 +127,6 @@ impl ${style_struct.gecko_struct_name} { Gecko_Construct_${style_struct.gecko_ffi_name}(&mut Arc::make_mut(&mut result).gecko); } result -% else: - Arc::new(${style_struct.gecko_struct_name}) -% endif } } %if style_struct.gecko_ffi_name: