From fc55f6c7e9de832a8499967c6f3ead295845c5fe Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 3 Nov 2021 11:51:35 +0100 Subject: [PATCH] Cleanup some code --- Source/Engine/Physics/Joints/D6Joint.h | 10 +----- Source/Engine/Physics/Joints/Limits.h | 48 +++----------------------- 2 files changed, 5 insertions(+), 53 deletions(-) diff --git a/Source/Engine/Physics/Joints/D6Joint.h b/Source/Engine/Physics/Joints/D6Joint.h index 3debd5368..f17571bbb 100644 --- a/Source/Engine/Physics/Joints/D6Joint.h +++ b/Source/Engine/Physics/Joints/D6Joint.h @@ -148,17 +148,9 @@ DECLARE_SCRIPTING_TYPE_MINIMAL(D6JointDrive); public: - /// - /// Compares two objects. - /// - /// The other. - /// True if both objects are equal. bool operator==(const D6JointDrive& other) const { - return Stiffness == other.Stiffness - && Damping == other.Damping - && ForceLimit == other.ForceLimit - && Acceleration == other.Acceleration; + return Stiffness == other.Stiffness && Damping == other.Damping && ForceLimit == other.ForceLimit && Acceleration == other.Acceleration; } }; diff --git a/Source/Engine/Physics/Joints/Limits.h b/Source/Engine/Physics/Joints/Limits.h index 20c047cb0..0bb3d94ad 100644 --- a/Source/Engine/Physics/Joints/Limits.h +++ b/Source/Engine/Physics/Joints/Limits.h @@ -46,11 +46,6 @@ public: public: - /// - /// Compares two objects. - /// - /// The other. - /// True if both objects are equal. bool operator==(const SpringParameters& other) const { return Stiffness == other.Stiffness && Damping == other.Damping; @@ -128,18 +123,9 @@ public: public: - /// - /// Compares two objects. - /// - /// The other. - /// True if both objects are equal. bool operator==(const LimitLinearRange& other) const { - return Lower == other.Lower - && Upper == other.Upper - && ContactDist == other.ContactDist - && Restitution == other.Restitution - && Spring == other.Spring; + return Lower == other.Lower && Upper == other.Upper && ContactDist == other.ContactDist && Restitution == other.Restitution && Spring == other.Spring; } }; @@ -205,17 +191,9 @@ public: public: - /// - /// Compares two objects. - /// - /// The other. - /// True if both objects are equal. bool operator==(const LimitLinear& other) const { - return Extent == other.Extent - && ContactDist == other.ContactDist - && Restitution == other.Restitution - && Spring == other.Spring; + return Extent == other.Extent && ContactDist == other.ContactDist && Restitution == other.Restitution && Spring == other.Spring; } }; @@ -290,18 +268,9 @@ public: public: - /// - /// Compares two objects. - /// - /// The other. - /// True if both objects are equal. bool operator==(const LimitAngularRange& other) const { - return Lower == other.Lower - && Upper == other.Upper - && ContactDist == other.ContactDist - && Restitution == other.Restitution - && Spring == other.Spring; + return Lower == other.Lower && Upper == other.Upper && ContactDist == other.ContactDist && Restitution == other.Restitution && Spring == other.Spring; } }; @@ -376,17 +345,8 @@ public: public: - /// - /// Compares two objects. - /// - /// The other. - /// True if both objects are equal. bool operator==(const LimitConeRange& other) const { - return YLimitAngle == other.YLimitAngle - && ZLimitAngle == other.ZLimitAngle - && ContactDist == other.ContactDist - && Restitution == other.Restitution - && Spring == other.Spring; + return YLimitAngle == other.YLimitAngle && ZLimitAngle == other.ZLimitAngle && ContactDist == other.ContactDist && Restitution == other.Restitution && Spring == other.Spring; } };