From 80e6a6903a94ec38ba335acfd1b898ca43f06517 Mon Sep 17 00:00:00 2001 From: Danilo Aimini <82231674+AMZN-daimini@users.noreply.github.com> Date: Fri, 24 Sep 2021 15:55:02 -0700 Subject: [PATCH] Remove unused CreateEditorEntity function Signed-off-by: Danilo Aimini <82231674+AMZN-daimini@users.noreply.github.com> --- .../Tests/Prefab/PrefabFocus/PrefabFocusTests.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Code/Framework/AzToolsFramework/Tests/Prefab/PrefabFocus/PrefabFocusTests.cpp b/Code/Framework/AzToolsFramework/Tests/Prefab/PrefabFocus/PrefabFocusTests.cpp index a9f38425d5..ffd6cd2a44 100644 --- a/Code/Framework/AzToolsFramework/Tests/Prefab/PrefabFocus/PrefabFocusTests.cpp +++ b/Code/Framework/AzToolsFramework/Tests/Prefab/PrefabFocus/PrefabFocusTests.cpp @@ -59,18 +59,6 @@ namespace UnitTest m_instanceMap["city"] = m_rootInstance.get(); } - AZ::EntityId CreateEditorEntity(const char* name, AZ::EntityId parentId) - { - AZ::Entity* newEntity = CreateEntity(name); - AzToolsFramework::EditorEntityContextRequestBus::Broadcast( - &AzToolsFramework::EditorEntityContextRequests::HandleEntitiesAdded, AzToolsFramework::EntityList{ newEntity }); - - // Parent - AZ::TransformBus::Event(newEntity->GetId(), &AZ::TransformInterface::SetParent, parentId); - - return newEntity->GetId(); - } - AZStd::unordered_map m_entityMap; AZStd::unordered_map m_instanceMap;