[LYN-1731] Removed temporary bus for checking if the new viewport interaction model is enabled.

This commit is contained in:
Chris Galvan
2021-04-30 10:24:01 -05:00
parent ca08d78dd6
commit 6ace9ffedb
7 changed files with 0 additions and 49 deletions
@@ -277,20 +277,6 @@ namespace AzToolsFramework
} // namespace ViewportInteraction
/// Temporary bus to query if the new Viewport Interaction Model mode is enabled or not.
class NewViewportInteractionModelEnabledRequests
: public AZ::EBusTraits
{
public:
virtual bool IsNewViewportInteractionModelEnabled() = 0;
protected:
~NewViewportInteractionModelEnabledRequests() = default;
};
/// Type to inherit to implement NewViewportInteractionModelEnabledRequests
using NewViewportInteractionModelEnabledRequestBus = AZ::EBus<NewViewportInteractionModelEnabledRequests>;
/// Utility function to return EntityContextId.
inline AzFramework::EntityContextId GetEntityContextId()
{
@@ -300,16 +286,4 @@ namespace AzToolsFramework
return entityContextId;
}
/// Utility function to return if the new Viewport Interaction Model
/// is enabled (wraps NewViewportInteractionModelEnabledRequests).
inline bool IsNewViewportInteractionModelEnabled()
{
bool newViewportInteractionModelEnabled = false;
NewViewportInteractionModelEnabledRequestBus::BroadcastResult(
newViewportInteractionModelEnabled,
&NewViewportInteractionModelEnabledRequests::IsNewViewportInteractionModelEnabled);
return newViewportInteractionModelEnabled;
}
} // namespace AzToolsFramework