diff --git a/Source/Engine/Animations/Graph/AnimGraph.h b/Source/Engine/Animations/Graph/AnimGraph.h index deca7bb5f..e1967f1ad 100644 --- a/Source/Engine/Animations/Graph/AnimGraph.h +++ b/Source/Engine/Animations/Graph/AnimGraph.h @@ -169,22 +169,6 @@ DECLARE_ENUM_OPERATORS(AnimGraphStateTransition::FlagTypes); API_CLASS() class AnimGraphParameter : public 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; - } }; /// diff --git a/Source/Engine/Core/Templates.h b/Source/Engine/Core/Templates.h index a87166e1d..88c3c0165 100644 --- a/Source/Engine/Core/Templates.h +++ b/Source/Engine/Core/Templates.h @@ -234,6 +234,8 @@ struct TIsCopyConstructible enum { Value = __is_constructible(T, typename TAddLValueReference::Type>::Type) }; }; +// Checks if a type has a move constructor. + template struct TIsMoveConstructible { diff --git a/Source/Engine/Graphics/Materials/MaterialParams.h b/Source/Engine/Graphics/Materials/MaterialParams.h index 2092c5c49..bf3d61d29 100644 --- a/Source/Engine/Graphics/Materials/MaterialParams.h +++ b/Source/Engine/Graphics/Materials/MaterialParams.h @@ -198,23 +198,6 @@ private: ScriptingObjectReference _asGPUTexture; 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: /// /// Gets the parameter ID (not the parameter instance Id but the original parameter ID). diff --git a/Source/Engine/Graphics/Models/MaterialSlot.h b/Source/Engine/Graphics/Models/MaterialSlot.h index 6d08939b3..8a2281d5f 100644 --- a/Source/Engine/Graphics/Models/MaterialSlot.h +++ b/Source/Engine/Graphics/Models/MaterialSlot.h @@ -28,13 +28,4 @@ API_CLASS(NoSpawn) class FLAXENGINE_API MaterialSlot : public ScriptingObject /// The slot name. /// API_FIELD() String Name; - -public: - MaterialSlot(const MaterialSlot& other) - : MaterialSlot() - { -#if !BUILD_RELEASE - CRASH; // Not used -#endif - } }; diff --git a/Source/Engine/Graphics/Models/Mesh.h b/Source/Engine/Graphics/Models/Mesh.h index 7ca50a9c2..a10e36797 100644 --- a/Source/Engine/Graphics/Models/Mesh.h +++ b/Source/Engine/Graphics/Models/Mesh.h @@ -16,16 +16,6 @@ API_CLASS(NoSpawn) class FLAXENGINE_API Mesh : public MeshBase { DECLARE_SCRIPTING_TYPE_WITH_CONSTRUCTOR_IMPL(Mesh, MeshBase); -public: - Mesh(const Mesh& other) - : Mesh() - { -#if !BUILD_RELEASE - CRASH; // Not used -#endif - } - -public: /// /// Gets the model owning this mesh. /// diff --git a/Source/Engine/Graphics/Models/SkinnedMesh.h b/Source/Engine/Graphics/Models/SkinnedMesh.h index 5080024f9..0f407bcc2 100644 --- a/Source/Engine/Graphics/Models/SkinnedMesh.h +++ b/Source/Engine/Graphics/Models/SkinnedMesh.h @@ -12,16 +12,6 @@ API_CLASS(NoSpawn) class FLAXENGINE_API SkinnedMesh : public MeshBase { DECLARE_SCRIPTING_TYPE_WITH_CONSTRUCTOR_IMPL(SkinnedMesh, MeshBase); -public: - SkinnedMesh(const SkinnedMesh& other) - : SkinnedMesh() - { -#if !BUILD_RELEASE - CRASH; // Not used -#endif - } - -public: /// /// Gets the skinned model owning this mesh. /// @@ -48,7 +38,6 @@ public: /// True if cannot load data, otherwise false. DEPRECATED("Use Init intead.") bool Load(uint32 vertices, uint32 triangles, const void* vb0, const void* ib, bool use16BitIndexBuffer); -public: /// /// Updates the model mesh (used by the virtual models created with Init rather than Load). /// [Deprecated in v1.10] diff --git a/Source/Engine/GraphicsDevice/DirectX/DX11/GPUTextureDX11.h b/Source/Engine/GraphicsDevice/DirectX/DX11/GPUTextureDX11.h index 6cc2124f9..0d5ba2264 100644 --- a/Source/Engine/GraphicsDevice/DirectX/DX11/GPUTextureDX11.h +++ b/Source/Engine/GraphicsDevice/DirectX/DX11/GPUTextureDX11.h @@ -24,33 +24,10 @@ private: ID3D11UnorderedAccessView* _uav = nullptr; public: - - /// - /// Initializes a new instance of the class. - /// 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; - } - - /// - /// Finalizes an instance of the class. - /// ~GPUTextureViewDX11() { Release(); diff --git a/Source/Engine/GraphicsDevice/DirectX/DX12/GPUTextureDX12.h b/Source/Engine/GraphicsDevice/DirectX/DX12/GPUTextureDX12.h index c89ad2cb8..884500151 100644 --- a/Source/Engine/GraphicsDevice/DirectX/DX12/GPUTextureDX12.h +++ b/Source/Engine/GraphicsDevice/DirectX/DX12/GPUTextureDX12.h @@ -21,27 +21,10 @@ private: DescriptorHeapWithSlotsDX12::Slot _rtv, _srv, _dsv, _uav; public: - 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() { Release(); diff --git a/Source/Engine/GraphicsDevice/Vulkan/GPUTextureVulkan.h b/Source/Engine/GraphicsDevice/Vulkan/GPUTextureVulkan.h index 46da296d6..e2ea01dd6 100644 --- a/Source/Engine/GraphicsDevice/Vulkan/GPUTextureVulkan.h +++ b/Source/Engine/GraphicsDevice/Vulkan/GPUTextureVulkan.h @@ -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 ~GPUTextureViewVulkan() { diff --git a/Source/Engine/Particles/ParticleEffect.h b/Source/Engine/Particles/ParticleEffect.h index 1e2136ff9..7317f176b 100644 --- a/Source/Engine/Particles/ParticleEffect.h +++ b/Source/Engine/Particles/ParticleEffect.h @@ -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; - } - /// /// Returns true if parameter object handle is valid. /// diff --git a/Source/Engine/Particles/ParticlesSimulation.h b/Source/Engine/Particles/ParticlesSimulation.h index ec2bd5e05..acf5c5bbf 100644 --- a/Source/Engine/Particles/ParticlesSimulation.h +++ b/Source/Engine/Particles/ParticlesSimulation.h @@ -21,22 +21,6 @@ public: : 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; - } }; /// diff --git a/Source/Engine/Visject/ShaderGraph.h b/Source/Engine/Visject/ShaderGraph.h index 1a871cf4f..8bdc15eb7 100644 --- a/Source/Engine/Visject/ShaderGraph.h +++ b/Source/Engine/Visject/ShaderGraph.h @@ -94,22 +94,6 @@ public: : 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 BoxType = ShaderGraphBox, class ParameterType = ShaderGraphParameter> diff --git a/Source/Engine/Visject/VisjectGraph.h b/Source/Engine/Visject/VisjectGraph.h index 3a2e6439d..0f91ff4ab 100644 --- a/Source/Engine/Visject/VisjectGraph.h +++ b/Source/Engine/Visject/VisjectGraph.h @@ -103,22 +103,6 @@ public: API_CLASS() class FLAXENGINE_API VisjectGraphParameter : public 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 BoxType = VisjectGraphBox, class ParameterType = VisjectGraphParameter>