Clean up some of the instance wrapper APIs

This commit is contained in:
Lucien Greathouse
2019-09-09 13:59:36 -07:00
parent 824b984a64
commit 47ee8d54a8
3 changed files with 67 additions and 22 deletions

View File

@@ -155,7 +155,7 @@ fn compute_children_patches<'a>(
.get_instance(id)
.expect("Instance did not exist in tree");
let instance_children = instance.instance.get_children_ids();
let instance_children = instance.children();
let mut paired_instances = vec![false; instance_children.len()];
@@ -173,8 +173,8 @@ fn compute_children_patches<'a>(
.get_instance(**instance_child_id)
.expect("Instance did not exist in tree");
if snapshot_child.name == instance_child.instance.name
&& snapshot_child.class_name == instance_child.instance.class_name
if snapshot_child.name == instance_child.name()
&& snapshot_child.class_name == instance_child.class_name()
{
paired_instances[*instance_index] = true;
return true;