mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-11 22:50:08 +00:00
removed impls for field/field_mut
- these are redundant now, since auto-generated method does the same
This commit is contained in:
@@ -206,26 +206,6 @@ macro_rules! define_two_args_node {
|
||||
let this = std::mem::replace(self, value.take()?);
|
||||
Ok(Box::new(this))
|
||||
}
|
||||
|
||||
fn field(&self, name: &str, func: &mut dyn FnMut(Option<&dyn Reflect>)) {
|
||||
func(match name {
|
||||
"Lhs" => Some(&self.lhs),
|
||||
"Rhs" => Some(&self.rhs),
|
||||
_ => None,
|
||||
})
|
||||
}
|
||||
|
||||
fn field_mut(
|
||||
&mut self,
|
||||
name: &str,
|
||||
func: &mut dyn FnMut(Option<&mut dyn Reflect>),
|
||||
) {
|
||||
func(match name {
|
||||
"Lhs" => Some(&mut self.lhs),
|
||||
"Rhs" => Some(&mut self.rhs),
|
||||
_ => None,
|
||||
})
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -367,20 +347,6 @@ impl<T: EntityId> Reflect for NotNode<T> {
|
||||
let this = std::mem::replace(self, value.take()?);
|
||||
Ok(Box::new(this))
|
||||
}
|
||||
|
||||
fn field(&self, name: &str, func: &mut dyn FnMut(Option<&dyn Reflect>)) {
|
||||
func(match name {
|
||||
"Lhs" => Some(&self.lhs),
|
||||
_ => None,
|
||||
})
|
||||
}
|
||||
|
||||
fn field_mut(&mut self, name: &str, func: &mut dyn FnMut(Option<&mut dyn Reflect>)) {
|
||||
func(match name {
|
||||
"Lhs" => Some(&mut self.lhs),
|
||||
_ => None,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
/// A node responsible for logical operations evaluation. It can have any number of descendant nodes.
|
||||
|
||||
Reference in New Issue
Block a user