Skip to content

Commit b0ee007

Browse files
committed
Remove layer-related tests
Signed-off-by: Danilo Aimini <[email protected]>
1 parent 8bf4868 commit b0ee007

File tree

5 files changed

+2
-2805
lines changed

5 files changed

+2
-2805
lines changed

Code/Framework/AzToolsFramework/AzToolsFramework/UnitTest/AzToolsFrameworkTestHelpers.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <AzToolsFramework/Entity/EditorEntityHelpers.h>
1818
#include <AzToolsFramework/Entity/SliceEditorEntityOwnershipServiceBus.h>
1919
#include <AzToolsFramework/ToolsComponents/TransformComponent.h>
20-
#include <AzToolsFramework/ToolsComponents/EditorLayerComponent.h>
2120
#include <AzToolsFramework/ToolsComponents/EditorLockComponent.h>
2221
#include <AzToolsFramework/ToolsComponents/EditorVisibilityComponent.h>
2322

@@ -569,27 +568,6 @@ namespace UnitTest
569568
return entity->GetId();
570569
}
571570

572-
AZ::EntityId CreateEditorLayerEntity(const char* name, AZ::Entity** outEntity /*= nullptr*/)
573-
{
574-
AZ::Entity* entity = nullptr;
575-
CreateDefaultEditorEntity(name, &entity);
576-
577-
auto layer = aznew Layers::EditorLayerComponent();
578-
AZ::Entity::ComponentArrayType newComponents{ layer };
579-
580-
EntityCompositionRequests::AddExistingComponentsOutcome componentAddResult;
581-
EntityCompositionRequestBus::BroadcastResult(
582-
componentAddResult, &EntityCompositionRequests::AddExistingComponentsToEntityById,
583-
entity->GetId(), newComponents);
584-
585-
if (outEntity)
586-
{
587-
*outEntity = entity;
588-
}
589-
590-
return entity->GetId();
591-
}
592-
593571
AZ::Data::AssetId SaveAsSlice(
594572
AZStd::vector<AZ::Entity*> entities, AzToolsFramework::ToolsApplication* toolsApplication,
595573
SliceAssets& inoutSliceAssets)

0 commit comments

Comments
 (0)