зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1575559 - Remove unused impl_coord_copy. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D42857 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
9098d47fe0
Коммит
5ad7bad9b0
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче