Remove unused GetNestedInstance method in Prefab Instance class
This commit is contained in:
@@ -401,17 +401,6 @@ namespace AzToolsFramework
|
||||
}
|
||||
}
|
||||
|
||||
InstancePtrOptionalReference Instance::GetNestedInstance(const InstanceAlias& instanceAlias)
|
||||
{
|
||||
auto nestedInstanceIterator = m_nestedInstances.find(instanceAlias);
|
||||
if (nestedInstanceIterator != m_nestedInstances.end())
|
||||
{
|
||||
return nestedInstanceIterator->second;
|
||||
}
|
||||
|
||||
return AZStd::nullopt;
|
||||
}
|
||||
|
||||
void Instance::GetNestedInstances(const AZStd::function<void(AZStd::unique_ptr<Instance>&)>& callback)
|
||||
{
|
||||
for (auto& [instanceAlias, instance] : m_nestedInstances)
|
||||
|
||||
@@ -95,7 +95,6 @@ namespace AzToolsFramework
|
||||
|
||||
Instance& AddInstance(AZStd::unique_ptr<Instance> instance);
|
||||
AZStd::unique_ptr<Instance> DetachNestedInstance(const InstanceAlias& instanceAlias);
|
||||
InstancePtrOptionalReference GetNestedInstance(const InstanceAlias& instanceAlias);
|
||||
|
||||
/**
|
||||
* Gets the aliases for the entities in the Instance DOM.
|
||||
|
||||
Reference in New Issue
Block a user