loplugin:unusedmethods
Change-Id: I5eec1b68efc285995db3b5825699c07fa006cb35 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207375 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
This commit is contained in:
@@ -974,16 +974,6 @@ double box2DBody::getAngle() const
|
||||
return ::basegfx::rad2deg(-fAngle);
|
||||
}
|
||||
|
||||
void box2DBody::setAngle(const double fAngle)
|
||||
{
|
||||
#if BOX2D_CHECK_VERSION(3, 0)
|
||||
b2Body_SetTransform(*mpBox2DBody, b2Body_GetPosition(*mpBox2DBody),
|
||||
b2MakeRot(::basegfx::deg2rad(-fAngle)));
|
||||
#else
|
||||
mpBox2DBody->SetTransform(mpBox2DBody->GetPosition(), ::basegfx::deg2rad(-fAngle));
|
||||
#endif
|
||||
}
|
||||
|
||||
void box2DBody::setDensityAndRestitution(const double fDensity, const double fRestitution)
|
||||
{
|
||||
#if BOX2D_CHECK_VERSION(3, 0)
|
||||
|
||||
@@ -408,13 +408,6 @@ public:
|
||||
/// @return current angle of rotation of the body
|
||||
double getAngle() const;
|
||||
|
||||
/** Set angle of the box2d body
|
||||
|
||||
@param fAngle
|
||||
Angle in degrees
|
||||
*/
|
||||
void setAngle(const double fAngle);
|
||||
|
||||
/** Set density and restitution of the box2d body
|
||||
|
||||
@param fDensity
|
||||
|
||||
Reference in New Issue
Block a user