diff --git a/common/camera.cpp b/common/camera.cpp index 2b0cce5c..ec60c24d 100644 --- a/common/camera.cpp +++ b/common/camera.cpp @@ -55,19 +55,6 @@ lcCamera::~lcCamera() { } -void lcCamera::CopyProperties(const lcCamera& Other) -{ - m_fovy = Other.m_fovy; - m_zNear = Other.m_zNear; - m_zFar = Other.m_zFar; - - mPosition = Other.mPosition; - mTargetPosition = Other.mTargetPosition; - mUpVector = Other.mUpVector; - - mProjection = Other.mProjection; -} - QString lcCamera::GetCameraProjectionString(lcCameraProjection CameraProjection) { switch (CameraProjection) diff --git a/common/camera.h b/common/camera.h index f19b6435..c2101781 100644 --- a/common/camera.h +++ b/common/camera.h @@ -69,8 +69,6 @@ public: static QStringList GetCameraProjectionStrings(); static lcViewpoint GetViewpoint(const QString& ViewpointName); - void CopyProperties(const lcCamera& Other); - QString GetName() const override { return mName; diff --git a/common/light.cpp b/common/light.cpp index 498e9442..7ab89c79 100644 --- a/common/light.cpp +++ b/common/light.cpp @@ -35,29 +35,6 @@ lcLight::lcLight(const lcVector3& Position, lcLightType LightType) lcLight::UpdatePosition(1); } -void lcLight::CopyProperties(const lcLight& Other) -{ - mLightType = Other.mLightType; - mCastShadow = Other.mCastShadow; - mPosition = Other.mPosition; - mRotation = Other.mRotation; - mColor = Other.mColor; - mBlenderPower = Other.mBlenderPower; - mBlenderRadius = Other.mBlenderRadius; - mBlenderAngle = Other.mBlenderAngle; - mPOVRayPower = Other.mPOVRayPower; - mPOVRayFadeDistance = Other.mPOVRayFadeDistance; - mPOVRayFadePower = Other.mPOVRayFadePower; - mSpotConeAngle = Other.mSpotConeAngle; - mSpotPenumbraAngle = Other.mSpotPenumbraAngle; - mPOVRaySpotTightness = Other.mPOVRaySpotTightness; - mAreaShape = Other.mAreaShape; - mAreaSizeX = Other.mAreaSizeX; - mAreaSizeY = Other.mAreaSizeY; - mPOVRayAreaGridX = Other.mPOVRayAreaGridX; - mPOVRayAreaGridY = Other.mPOVRayAreaGridY; -} - QString lcLight::GetLightTypeString(lcLightType LightType) { switch (LightType) diff --git a/common/light.h b/common/light.h index 3344e31f..7b0cd8fa 100644 --- a/common/light.h +++ b/common/light.h @@ -82,8 +82,6 @@ public: static QString GetAreaShapeString(lcLightAreaShape LightAreaShape); static QStringList GetAreaShapeStrings(); - void CopyProperties(const lcLight& Other); - bool IsPointLight() const { return mLightType == lcLightType::Point; diff --git a/common/piece.cpp b/common/piece.cpp index 19534c7c..36d6e5cb 100644 --- a/common/piece.cpp +++ b/common/piece.cpp @@ -67,28 +67,6 @@ lcPiece::~lcPiece() delete mMesh; } -void lcPiece::CopyProperties(const lcPiece& Other) -{ - SetPieceInfo(Other.mPieceInfo, Other.mID, true, false); - - mPosition = Other.mPosition; - mRotation = Other.mRotation; - - mColorIndex = Other.mColorIndex; - mColorCode = Other.mColorCode; - - mStepShow = Other.mStepShow; - mStepHide = Other.mStepHide; - - mPivotPointValid = Other.mPivotPointValid; - mPivotMatrix = Other.mPivotMatrix; - - mControlPoints = Other.mControlPoints; - mTrainTrackConnections = Other.mTrainTrackConnections; - - UpdateMesh(); -} - void lcPiece::SetPieceInfo(PieceInfo* Info, const QString& ID, bool Wait, bool UpdateSynthInfo) { lcPiecesLibrary* Library = lcGetPiecesLibrary(); diff --git a/common/piece.h b/common/piece.h index db4f2d30..934fe9d4 100644 --- a/common/piece.h +++ b/common/piece.h @@ -67,8 +67,6 @@ public: lcPiece& operator=(const lcPiece&) = delete; lcPiece& operator=(lcPiece&&) = delete; - void CopyProperties(const lcPiece& Other); - quint32 GetAllowedTransforms() const override; lcVector3 GetSectionPosition(quint32 Section) const override;