Remove old code

This commit is contained in:
Wojtek Figat
2025-01-24 11:08:31 +01:00
parent dffc6ea24d
commit 80a44b5f5c
13 changed files with 2 additions and 183 deletions

View File

@@ -169,22 +169,6 @@ DECLARE_ENUM_OPERATORS(AnimGraphStateTransition::FlagTypes);
API_CLASS() class AnimGraphParameter : public VisjectGraphParameter API_CLASS() class AnimGraphParameter : public VisjectGraphParameter
{ {
DECLARE_SCRIPTING_TYPE_WITH_CONSTRUCTOR_IMPL(AnimGraphParameter, VisjectGraphParameter); DECLARE_SCRIPTING_TYPE_WITH_CONSTRUCTOR_IMPL(AnimGraphParameter, VisjectGraphParameter);
public:
AnimGraphParameter(const AnimGraphParameter& other)
: AnimGraphParameter()
{
#if !BUILD_RELEASE
CRASH; // Not used
#endif
}
AnimGraphParameter& operator=(const AnimGraphParameter& other)
{
#if !BUILD_RELEASE
CRASH; // Not used
#endif
return *this;
}
}; };
/// <summary> /// <summary>

View File

@@ -234,6 +234,8 @@ struct TIsCopyConstructible
enum { Value = __is_constructible(T, typename TAddLValueReference<typename TAddConst<T>::Type>::Type) }; enum { Value = __is_constructible(T, typename TAddLValueReference<typename TAddConst<T>::Type>::Type) };
}; };
// Checks if a type has a move constructor.
template<typename T> template<typename T>
struct TIsMoveConstructible struct TIsMoveConstructible
{ {

View File

@@ -198,23 +198,6 @@ private:
ScriptingObjectReference<GPUTexture> _asGPUTexture; ScriptingObjectReference<GPUTexture> _asGPUTexture;
String _name; String _name;
public:
MaterialParameter(const MaterialParameter& other)
: MaterialParameter()
{
#if !BUILD_RELEASE
CRASH; // Not used
#endif
}
MaterialParameter& operator=(const MaterialParameter& other)
{
#if !BUILD_RELEASE
CRASH; // Not used
#endif
return *this;
}
public: public:
/// <summary> /// <summary>
/// Gets the parameter ID (not the parameter instance Id but the original parameter ID). /// Gets the parameter ID (not the parameter instance Id but the original parameter ID).

View File

@@ -28,13 +28,4 @@ API_CLASS(NoSpawn) class FLAXENGINE_API MaterialSlot : public ScriptingObject
/// The slot name. /// The slot name.
/// </summary> /// </summary>
API_FIELD() String Name; API_FIELD() String Name;
public:
MaterialSlot(const MaterialSlot& other)
: MaterialSlot()
{
#if !BUILD_RELEASE
CRASH; // Not used
#endif
}
}; };

View File

@@ -16,16 +16,6 @@ API_CLASS(NoSpawn) class FLAXENGINE_API Mesh : public MeshBase
{ {
DECLARE_SCRIPTING_TYPE_WITH_CONSTRUCTOR_IMPL(Mesh, MeshBase); DECLARE_SCRIPTING_TYPE_WITH_CONSTRUCTOR_IMPL(Mesh, MeshBase);
public:
Mesh(const Mesh& other)
: Mesh()
{
#if !BUILD_RELEASE
CRASH; // Not used
#endif
}
public:
/// <summary> /// <summary>
/// Gets the model owning this mesh. /// Gets the model owning this mesh.
/// </summary> /// </summary>

View File

@@ -12,16 +12,6 @@ API_CLASS(NoSpawn) class FLAXENGINE_API SkinnedMesh : public MeshBase
{ {
DECLARE_SCRIPTING_TYPE_WITH_CONSTRUCTOR_IMPL(SkinnedMesh, MeshBase); DECLARE_SCRIPTING_TYPE_WITH_CONSTRUCTOR_IMPL(SkinnedMesh, MeshBase);
public:
SkinnedMesh(const SkinnedMesh& other)
: SkinnedMesh()
{
#if !BUILD_RELEASE
CRASH; // Not used
#endif
}
public:
/// <summary> /// <summary>
/// Gets the skinned model owning this mesh. /// Gets the skinned model owning this mesh.
/// </summary> /// </summary>
@@ -48,7 +38,6 @@ public:
/// <returns>True if cannot load data, otherwise false.</returns> /// <returns>True if cannot load data, otherwise false.</returns>
DEPRECATED("Use Init intead.") bool Load(uint32 vertices, uint32 triangles, const void* vb0, const void* ib, bool use16BitIndexBuffer); DEPRECATED("Use Init intead.") bool Load(uint32 vertices, uint32 triangles, const void* vb0, const void* ib, bool use16BitIndexBuffer);
public:
/// <summary> /// <summary>
/// Updates the model mesh (used by the virtual models created with Init rather than Load). /// Updates the model mesh (used by the virtual models created with Init rather than Load).
/// [Deprecated in v1.10] /// [Deprecated in v1.10]

View File

@@ -24,33 +24,10 @@ private:
ID3D11UnorderedAccessView* _uav = nullptr; ID3D11UnorderedAccessView* _uav = nullptr;
public: public:
/// <summary>
/// Initializes a new instance of the <see cref="GPUTextureViewDX11"/> class.
/// </summary>
GPUTextureViewDX11() GPUTextureViewDX11()
{ {
} }
GPUTextureViewDX11(const GPUTextureViewDX11& other)
: GPUTextureViewDX11()
{
#if !BUILD_RELEASE
CRASH; // Not used
#endif
}
GPUTextureViewDX11& operator=(const GPUTextureViewDX11& other)
{
#if !BUILD_RELEASE
CRASH; // Not used
#endif
return *this;
}
/// <summary>
/// Finalizes an instance of the <see cref="GPUTextureViewDX11"/> class.
/// </summary>
~GPUTextureViewDX11() ~GPUTextureViewDX11()
{ {
Release(); Release();

View File

@@ -21,27 +21,10 @@ private:
DescriptorHeapWithSlotsDX12::Slot _rtv, _srv, _dsv, _uav; DescriptorHeapWithSlotsDX12::Slot _rtv, _srv, _dsv, _uav;
public: public:
GPUTextureViewDX12() GPUTextureViewDX12()
{ {
} }
GPUTextureViewDX12(const GPUTextureViewDX12& other)
: GPUTextureViewDX12()
{
#if !BUILD_RELEASE
CRASH; // Not used
#endif
}
GPUTextureViewDX12& operator=(const GPUTextureViewDX12& other)
{
#if !BUILD_RELEASE
CRASH; // Not used
#endif
return *this;
}
~GPUTextureViewDX12() ~GPUTextureViewDX12()
{ {
Release(); Release();

View File

@@ -19,22 +19,6 @@ public:
{ {
} }
GPUTextureViewVulkan(const GPUTextureViewVulkan& other)
: GPUTextureViewVulkan()
{
#if !BUILD_RELEASE
CRASH; // Not used
#endif
}
GPUTextureViewVulkan& operator=(const GPUTextureViewVulkan& other)
{
#if !BUILD_RELEASE
CRASH; // Not used
#endif
return *this;
}
#if !BUILD_RELEASE #if !BUILD_RELEASE
~GPUTextureViewVulkan() ~GPUTextureViewVulkan()
{ {

View File

@@ -32,22 +32,6 @@ public:
{ {
} }
ParticleEffectParameter(const ParticleEffectParameter& other)
: ParticleEffectParameter()
{
#if !BUILD_RELEASE
CRASH; // Not used
#endif
}
ParticleEffectParameter& operator=(const ParticleEffectParameter& other)
{
#if !BUILD_RELEASE
CRASH; // Not used
#endif
return *this;
}
/// <summary> /// <summary>
/// Returns true if parameter object handle is valid. /// Returns true if parameter object handle is valid.
/// </summary> /// </summary>

View File

@@ -21,22 +21,6 @@ public:
: GraphParameter(SpawnParams(Guid::New(), TypeInitializer)) : GraphParameter(SpawnParams(Guid::New(), TypeInitializer))
{ {
} }
ParticleSystemParameter(const ParticleSystemParameter& other)
: ParticleSystemParameter()
{
#if !BUILD_RELEASE
CRASH; // Not used
#endif
}
ParticleSystemParameter& operator=(const ParticleSystemParameter& other)
{
#if !BUILD_RELEASE
CRASH; // Not used
#endif
return *this;
}
}; };
/// <summary> /// <summary>

View File

@@ -94,22 +94,6 @@ public:
: GraphParameter(SpawnParams(Guid::New(), TypeInitializer)) : GraphParameter(SpawnParams(Guid::New(), TypeInitializer))
{ {
} }
ShaderGraphParameter(const ShaderGraphParameter& other)
: ShaderGraphParameter()
{
#if !BUILD_RELEASE
CRASH; // Not used
#endif
}
ShaderGraphParameter& operator=(const ShaderGraphParameter& other)
{
#if !BUILD_RELEASE
CRASH; // Not used
#endif
return *this;
}
}; };
template<class NodeType = ShaderGraphNode<>, class BoxType = ShaderGraphBox, class ParameterType = ShaderGraphParameter> template<class NodeType = ShaderGraphNode<>, class BoxType = ShaderGraphBox, class ParameterType = ShaderGraphParameter>

View File

@@ -103,22 +103,6 @@ public:
API_CLASS() class FLAXENGINE_API VisjectGraphParameter : public GraphParameter API_CLASS() class FLAXENGINE_API VisjectGraphParameter : public GraphParameter
{ {
DECLARE_SCRIPTING_TYPE_WITH_CONSTRUCTOR_IMPL(VisjectGraphParameter, GraphParameter); DECLARE_SCRIPTING_TYPE_WITH_CONSTRUCTOR_IMPL(VisjectGraphParameter, GraphParameter);
public:
VisjectGraphParameter(const VisjectGraphParameter& other)
: VisjectGraphParameter()
{
#if !BUILD_RELEASE
CRASH; // Not used
#endif
}
VisjectGraphParameter& operator=(const VisjectGraphParameter& other)
{
#if !BUILD_RELEASE
CRASH; // Not used
#endif
return *this;
}
}; };
template<class NodeType = VisjectGraphNode<>, class BoxType = VisjectGraphBox, class ParameterType = VisjectGraphParameter> template<class NodeType = VisjectGraphNode<>, class BoxType = VisjectGraphBox, class ParameterType = VisjectGraphParameter>