Remove dead backend code
Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
@@ -28,8 +28,6 @@
|
||||
#include <ScriptCanvas/Debugger/API.h>
|
||||
#include <ScriptCanvas/Utils/NodeUtils.h>
|
||||
#include <ScriptCanvas/Grammar/Primitives.h>
|
||||
#include <ScriptCanvas/Grammar/GrammarContext.h>
|
||||
#include <ScriptCanvas/Grammar/GrammarContextBus.h>
|
||||
#include <ScriptCanvas/Debugger/ValidationEvents/DataValidation/DataValidationEvents.h>
|
||||
|
||||
// Version Conversion includes
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
|
||||
#include <AzCore/Serialization/SerializeContext.h>
|
||||
#include <ScriptCanvas/Core/SubgraphInterface.h>
|
||||
#include <ScriptCanvas/Grammar/GrammarContext.h>
|
||||
#include <ScriptCanvas/Grammar/GrammarContextBus.h>
|
||||
|
||||
namespace NodeableOutCpp
|
||||
{
|
||||
|
||||
@@ -12,8 +12,6 @@
|
||||
#include <AzCore/Serialization/Utils.h>
|
||||
#include <AzCore/Serialization/IdUtils.h>
|
||||
#include <ScriptCanvas/Core/Attributes.h>
|
||||
#include <ScriptCanvas/Grammar/GrammarContext.h>
|
||||
#include <ScriptCanvas/Grammar/GrammarContextBus.h>
|
||||
#include <ScriptCanvas/Libraries/Core/Method.h>
|
||||
#include <ScriptCanvas/Libraries/Core/MethodUtility.h>
|
||||
|
||||
|
||||
@@ -12,8 +12,6 @@
|
||||
#include <AzCore/Serialization/Utils.h>
|
||||
#include <AzCore/Serialization/IdUtils.h>
|
||||
#include <ScriptCanvas/Core/Attributes.h>
|
||||
#include <ScriptCanvas/Grammar/GrammarContext.h>
|
||||
#include <ScriptCanvas/Grammar/GrammarContextBus.h>
|
||||
#include <ScriptCanvas/Libraries/Core/Method.h>
|
||||
#include <ScriptCanvas/Libraries/Core/MethodUtility.h>
|
||||
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
|
||||
#include "AbstractCodeModel.h"
|
||||
#include "ExecutionTraversalListeners.h"
|
||||
#include "GrammarContextBus.h"
|
||||
#include "ParsingUtilities.h"
|
||||
#include "Primitives.h"
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
#include <ScriptCanvas/Variable/VariableData.h>
|
||||
|
||||
#include "ExecutionTraversalListeners.h"
|
||||
#include "GrammarContextBus.h"
|
||||
#include "ParsingUtilities.h"
|
||||
#include "Primitives.h"
|
||||
|
||||
|
||||
@@ -1,25 +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 "GrammarContext.h"
|
||||
|
||||
namespace ScriptCanvas
|
||||
{
|
||||
namespace Grammar
|
||||
{
|
||||
const SubgraphInterfaceSystem& Context::GetExecutionMapSystem() const
|
||||
{
|
||||
return m_executionMapSystem;
|
||||
}
|
||||
|
||||
SubgraphInterfaceSystem& Context::ModExecutionMapSystem()
|
||||
{
|
||||
return m_executionMapSystem;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,37 +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/Memory.h>
|
||||
#include <AzCore/Memory/SystemAllocator.h>
|
||||
|
||||
#include <ScriptCanvas/Core/SubgraphInterface.h>
|
||||
|
||||
namespace ScriptCanvas
|
||||
{
|
||||
namespace Grammar
|
||||
{
|
||||
class Context
|
||||
{
|
||||
public:
|
||||
AZ_CLASS_ALLOCATOR(Context, AZ::SystemAllocator, 0);
|
||||
|
||||
Context() = default;
|
||||
~Context() = default;
|
||||
|
||||
const SubgraphInterfaceSystem& GetExecutionMapSystem() const;
|
||||
SubgraphInterfaceSystem& ModExecutionMapSystem();
|
||||
|
||||
private:
|
||||
SubgraphInterfaceSystem m_executionMapSystem;
|
||||
|
||||
// put grammatical state globals in here, things that can be useful across several parses of graphs
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,35 +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
|
||||
|
||||
namespace ScriptCanvas
|
||||
{
|
||||
namespace Grammar
|
||||
{
|
||||
class Context;
|
||||
|
||||
struct RequestTraits : public AZ::EBusTraits
|
||||
{
|
||||
static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single;
|
||||
|
||||
virtual Context* GetGrammarContext() = 0;
|
||||
};
|
||||
|
||||
using RequestBus = AZ::EBus<RequestTraits>;
|
||||
|
||||
struct EventTraits : public AZ::EBusTraits
|
||||
{
|
||||
static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single;
|
||||
|
||||
// add stuff here to speed up parsing across separate graphs
|
||||
};
|
||||
|
||||
using EventBus = AZ::EBus<EventTraits>;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -24,8 +24,6 @@
|
||||
#include <ScriptCanvas/Grammar/PrimitivesExecution.h>
|
||||
|
||||
#include "GraphToLuaUtility.h"
|
||||
#include "TranslationContext.h"
|
||||
#include "TranslationContextBus.h"
|
||||
|
||||
namespace GraphToLuaCpp
|
||||
{
|
||||
@@ -92,9 +90,7 @@ namespace ScriptCanvas
|
||||
{
|
||||
SystemRequestBus::BroadcastResult(m_systemConfiguration, &SystemRequests::GetSystemComponentConfiguration);
|
||||
MarkTranslationStart();
|
||||
RequestBus::BroadcastResult(m_context, &RequestTraits::GetTranslationContext);
|
||||
AZ_Assert(m_context, "Nothing is possible without the context");
|
||||
|
||||
|
||||
m_tableName = GraphToLuaCpp::FileNameToTableName(m_model.GetSource().m_name);
|
||||
m_tableName += m_configuration.m_suffix;
|
||||
|
||||
@@ -138,12 +134,12 @@ namespace ScriptCanvas
|
||||
|
||||
const AZStd::string& GraphToLua::FindAbbreviation(AZStd::string_view dependency) const
|
||||
{
|
||||
return m_context->FindAbbreviation(dependency);
|
||||
return m_context.FindAbbreviation(dependency);
|
||||
}
|
||||
|
||||
const AZStd::string& GraphToLua::FindLibrary(AZStd::string_view dependency) const
|
||||
{
|
||||
return m_context->FindLibrary(dependency);
|
||||
return m_context.FindLibrary(dependency);
|
||||
}
|
||||
|
||||
AZStd::string_view GraphToLua::GetOperatorString(Grammar::ExecutionTreeConstPtr execution)
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <ScriptCanvas/Core/ScriptCanvasBus.h>
|
||||
|
||||
#include "GraphToX.h"
|
||||
#include "TranslationContext.h"
|
||||
#include "TranslationResult.h"
|
||||
#include "TranslationUtilities.h"
|
||||
|
||||
@@ -60,7 +61,7 @@ namespace ScriptCanvas
|
||||
RuntimeInputs m_runtimeInputs;
|
||||
BuildConfiguration m_executionConfig = BuildConfiguration::Release;
|
||||
FunctionBlockConfig m_functionBlockConfig = FunctionBlockConfig::Ignored;
|
||||
const Context* m_context = nullptr;
|
||||
Context m_context;
|
||||
AZStd::string m_tableName;
|
||||
Writer m_dotLua;
|
||||
SystemComponentConfiguration m_systemConfiguration;
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include <AzCore/Memory/Memory.h>
|
||||
#include <AzCore/Memory/SystemAllocator.h>
|
||||
#include "Translation.h"
|
||||
#include "TranslationContextBus.h"
|
||||
|
||||
namespace ScriptCanvas
|
||||
{
|
||||
|
||||
@@ -1,38 +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>
|
||||
|
||||
#include "Translation.h"
|
||||
|
||||
namespace ScriptCanvas
|
||||
{
|
||||
namespace Translation
|
||||
{
|
||||
class Context;
|
||||
|
||||
struct RequestTraits : public AZ::EBusTraits
|
||||
{
|
||||
static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single;
|
||||
|
||||
virtual Context* GetTranslationContext() = 0;
|
||||
};
|
||||
|
||||
using RequestBus = AZ::EBus<RequestTraits>;
|
||||
|
||||
struct EventTraits : public AZ::EBusTraits
|
||||
{
|
||||
static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single;
|
||||
};
|
||||
|
||||
using EventBus = AZ::EBus<EventTraits>;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user