Skip to content
Permalink
Browse files

style: Remove unused impl_coord_copy.

  • Loading branch information...
emilio committed Aug 21, 2019
1 parent dd5715d commit b8108eaa80c00084898f521d806faa12b1f53312
Showing with 0 additions and 12 deletions.
  1. +0 −12 components/style/properties/gecko.mako.rs
@@ -321,18 +321,6 @@ impl ${style_struct.gecko_struct_name} {
}
</%def>

<%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>

<%!
def get_gecko_property(ffi_name, self_param = "self"):
return "%s.gecko.%s" % (self_param, ffi_name)

0 comments on commit b8108ea

Please sign in to comment.
You can’t perform that action at this time.