From 0c2ebcbd1f5461c0185965cc163fb3272b10885b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sun, 17 Sep 2017 01:48:36 +0200 Subject: [PATCH] style: Remove a useless level of indirection in gecko.mako.rs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Emilio Cobos Álvarez --- components/style/properties/gecko.mako.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index 538d8a98c5a..3ae89836127 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -1140,8 +1140,9 @@ impl Clone for ${style_struct.gecko_struct_name} { } -<%def name="raw_impl_trait(style_struct, skip_longhands='', skip_additionals='')"> +<%def name="impl_trait(style_struct_name, skip_longhands='', skip_additionals='')"> <% + style_struct = next(x for x in data.style_structs if x.name == style_struct_name) longhands = [x for x in style_struct.longhands if not (skip_longhands == "*" or x.name in skip_longhands.split())] @@ -1274,13 +1275,6 @@ impl ${style_struct.gecko_struct_name} { } -<%def name="impl_trait(style_struct_name, skip_longhands='', skip_additionals='')"> -<%self:raw_impl_trait style_struct="${next(x for x in data.style_structs if x.name == style_struct_name)}" - skip_longhands="${skip_longhands}" skip_additionals="${skip_additionals}"> -${caller.body()} - - - <%! class Side(object): def __init__(self, name, index):