From 2fbb97367ac93eb11429382f31fa6417eec76f8d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 28 Sep 2018 09:58:59 +0200 Subject: loplugin:unusedmethods Change-Id: I5f9ef043d76c55f2c761fd08a2bc1dae66b675c8 Reviewed-on: https://gerrit.libreoffice.org/61073 Tested-by: Jenkins Reviewed-by: Noel Grandin --- slideshow/source/engine/shapeattributelayer.cxx | 17 ----------------- slideshow/source/inc/shapeattributelayer.hxx | 13 ------------- 2 files changed, 30 deletions(-) (limited to 'slideshow') diff --git a/slideshow/source/engine/shapeattributelayer.cxx b/slideshow/source/engine/shapeattributelayer.cxx index 937ed1508fb0..19817c01c10a 100644 --- a/slideshow/source/engine/shapeattributelayer.cxx +++ b/slideshow/source/engine/shapeattributelayer.cxx @@ -139,7 +139,6 @@ namespace slideshow mnShearXAngle(), mnShearYAngle(), mnAlpha(), - mnCharRotationAngle(), mnCharScale(), mnCharWeight(), @@ -178,7 +177,6 @@ namespace slideshow mbAlphaValid( false ), - mbCharRotationAngleValid( false ), mbCharScaleValid( false ), mbDimColorValid( false ), @@ -645,21 +643,6 @@ namespace slideshow ++mnContentState; } - bool ShapeAttributeLayer::isCharRotationAngleValid() const - { - return mbCharRotationAngleValid || ( haveChild() && mpChild->isCharRotationAngleValid() ); - } - - void ShapeAttributeLayer::setCharRotationAngle( const double& rNewAngle ) - { - ENSURE_OR_THROW( ::rtl::math::isFinite(rNewAngle), - "ShapeAttributeLayer::setCharRotationAngle(): Invalid angle" ); - - mnCharRotationAngle = rNewAngle; - mbCharRotationAngleValid = true; - ++mnContentState; - } - bool ShapeAttributeLayer::isCharWeightValid() const { return mbCharWeightValid || ( haveChild() && mpChild->isCharWeightValid() ); diff --git a/slideshow/source/inc/shapeattributelayer.hxx b/slideshow/source/inc/shapeattributelayer.hxx index 024a1cc88f41..df65a7dd4d53 100644 --- a/slideshow/source/inc/shapeattributelayer.hxx +++ b/slideshow/source/inc/shapeattributelayer.hxx @@ -375,17 +375,6 @@ namespace slideshow */ void setCharColor( const RGBColor& nNewColor ); - /** Query whether the char rotation angle attribute is valid - */ - bool isCharRotationAngleValid() const; - - /** Set the new text rotation angle of the shape - - @param rNewAngle - New text rotation angle in degrees. - */ - void setCharRotationAngle( const double& rNewAngle ); - /** Query whether the char weight attribute is valid */ bool isCharWeightValid() const; @@ -498,7 +487,6 @@ namespace slideshow double mnShearXAngle; double mnShearYAngle; double mnAlpha; - double mnCharRotationAngle; double mnCharScale; double mnCharWeight; @@ -537,7 +525,6 @@ namespace slideshow bool mbAlphaValid : 1; - bool mbCharRotationAngleValid: 1; bool mbCharScaleValid : 1; bool mbDimColorValid : 1; -- cgit