removed ReflectInheriableVariable::clone_value_box

- replaced with `Reflect::try_clone_box`
This commit is contained in:
Dmitry Stepanov
2026-06-12 22:35:45 +03:00
parent 589a08a928
commit 048aae2e6e
3 changed files with 1 additions and 9 deletions
-3
View File
@@ -42,9 +42,6 @@ pub trait ReflectInheritableVariable: Reflect {
/// Returns true if value was modified.
fn is_modified(&self) -> bool;
/// Clones self value.
fn clone_value_box(&self) -> Box<dyn Reflect>;
/// Marks value as modified, so its value won't be overwritten during property inheritance.
fn mark_modified(&mut self);
-5
View File
@@ -561,11 +561,6 @@ where
self.is_modified()
}
#[inline]
fn clone_value_box(&self) -> Box<dyn Reflect> {
Box::new(self.value.clone())
}
#[inline]
fn mark_modified(&mut self) {
self.mark_modified()