Removes WhiteBoxAllocator and EditorWhiteBoxBus from Gems/WhiteBox
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project.
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AzCore/EBus/EBus.h>
|
||||
|
||||
namespace WhiteBox
|
||||
{
|
||||
//! EditorWhiteBox system level requests.
|
||||
class EditorWhiteBoxRequests : public AZ::EBusTraits
|
||||
{
|
||||
public:
|
||||
// EBusTraits overrides ...
|
||||
static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single;
|
||||
static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::Single;
|
||||
|
||||
protected:
|
||||
~EditorWhiteBoxRequests() = default;
|
||||
};
|
||||
|
||||
using EditorWhiteBoxRequestBus = AZ::EBus<EditorWhiteBoxRequests>;
|
||||
} // namespace WhiteBox
|
||||
@@ -1,13 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project.
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "WhiteBoxAllocator.h"
|
||||
|
||||
namespace WhiteBox
|
||||
{
|
||||
} // namespace WhiteBox
|
||||
@@ -1,34 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project.
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AzCore/Memory/AllocatorBase.h>
|
||||
#include <AzCore/Memory/SystemAllocator.h>
|
||||
|
||||
namespace WhiteBox
|
||||
{
|
||||
//! White Box Gem allocator for all default allocations.
|
||||
class WhiteBoxAllocator : public AZ::SimpleSchemaAllocator<AZ::ChildAllocatorSchema<AZ::SystemAllocator>>
|
||||
{
|
||||
public:
|
||||
AZ_TYPE_INFO(WhiteBoxAllocator, "{BFEB8C64-FDB7-4A19-B9B4-DDF57A434F14}");
|
||||
|
||||
using Schema = AZ::ChildAllocatorSchema<AZ::SystemAllocator>;
|
||||
using Base = AZ::SimpleSchemaAllocator<Schema>;
|
||||
using Descriptor = Base::Descriptor;
|
||||
|
||||
WhiteBoxAllocator()
|
||||
: Base("White Box Allocator", "Child Allocator used to track White Box allocations")
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
//! Alias for using WhiteBoxAllocator with std container types.
|
||||
using WhiteBoxAZStdAlloc = AZ::AZStdAlloc<WhiteBoxAllocator>;
|
||||
} // namespace WhiteBox
|
||||
@@ -7,7 +7,6 @@
|
||||
*/
|
||||
|
||||
#include "Components/WhiteBoxColliderComponent.h"
|
||||
#include "WhiteBoxAllocator.h"
|
||||
#include "WhiteBoxComponent.h"
|
||||
#include "WhiteBoxModule.h"
|
||||
#include "WhiteBoxSystemComponent.h"
|
||||
@@ -19,8 +18,6 @@ namespace WhiteBox
|
||||
WhiteBoxModule::WhiteBoxModule()
|
||||
: CryHooksModule()
|
||||
{
|
||||
AZ::AllocatorInstance<WhiteBoxAllocator>::Create();
|
||||
|
||||
// push results of [MyComponent]::CreateDescriptor() into m_descriptors here
|
||||
m_descriptors.insert(
|
||||
m_descriptors.end(),
|
||||
@@ -33,7 +30,6 @@ namespace WhiteBox
|
||||
|
||||
WhiteBoxModule::~WhiteBoxModule()
|
||||
{
|
||||
AZ::AllocatorInstance<WhiteBoxAllocator>::Destroy();
|
||||
}
|
||||
|
||||
AZ::ComponentTypeList WhiteBoxModule::GetRequiredSystemComponents() const
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#
|
||||
|
||||
set(FILES
|
||||
Include/WhiteBox/EditorWhiteBoxBus.h
|
||||
Include/WhiteBox/EditorWhiteBoxComponentBus.h
|
||||
Include/WhiteBox/WhiteBoxToolApi.h
|
||||
Include/WhiteBox/EditorWhiteBoxColliderBus.h
|
||||
|
||||
@@ -8,8 +8,6 @@
|
||||
|
||||
set(FILES
|
||||
Include/WhiteBox/WhiteBoxBus.h
|
||||
Source/WhiteBoxAllocator.cpp
|
||||
Source/WhiteBoxAllocator.h
|
||||
Source/WhiteBoxComponent.cpp
|
||||
Source/WhiteBoxComponent.h
|
||||
Source/WhiteBoxSystemComponent.cpp
|
||||
|
||||
Reference in New Issue
Block a user