From b8108eaa80c00084898f521d806faa12b1f53312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 21 Aug 2019 18:25:21 +0000 Subject: [PATCH] style: Remove unused impl_coord_copy. Differential Revision: https://phabricator.services.mozilla.com/D42857 --- components/style/properties/gecko.mako.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index bd02a7ac944..ae252f46a83 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -321,18 +321,6 @@ impl ${style_struct.gecko_struct_name} { } -<%def name="impl_coord_copy(ident, gecko_ffi_name)"> - #[allow(non_snake_case)] - pub fn copy_${ident}_from(&mut self, other: &Self) { - self.gecko.${gecko_ffi_name}.copy_from(&other.gecko.${gecko_ffi_name}); - } - - #[allow(non_snake_case)] - pub fn reset_${ident}(&mut self, other: &Self) { - self.copy_${ident}_from(other) - } - - <%! def get_gecko_property(ffi_name, self_param = "self"): return "%s.gecko.%s" % (self_param, ffi_name)