mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Remove unused impl_coord_copy.
Differential Revision: https://phabricator.services.mozilla.com/D42857
This commit is contained in:
parent
dd5715d4f1
commit
b8108eaa80
1 changed files with 0 additions and 12 deletions
|
@ -321,18 +321,6 @@ impl ${style_struct.gecko_struct_name} {
|
||||||
}
|
}
|
||||||
</%def>
|
</%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"):
|
def get_gecko_property(ffi_name, self_param = "self"):
|
||||||
return "%s.gecko.%s" % (self_param, ffi_name)
|
return "%s.gecko.%s" % (self_param, ffi_name)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue