diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-16 09:49:37 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-16 12:18:39 +0000 |
commit | 1d852b32d7ad89b2317c04958060f366f8922ca4 (patch) | |
tree | 69720512c5675dfad89d00e1134b46faff5eb7b6 /svx/source/customshapes | |
parent | 383b75f4f516d6a5d256ffc08bc0e7836520447b (diff) |
loplugin:unusedmethods svx
Change-Id: I92158457b3ffaaf7c84c6f4c87708d766c8c9f61
Reviewed-on: https://gerrit.libreoffice.org/17117
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source/customshapes')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShape2d.cxx | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx b/svx/source/customshapes/EnhancedCustomShape2d.cxx index a6a0f3cb527d..71916865b8ba 100644 --- a/svx/source/customshapes/EnhancedCustomShape2d.cxx +++ b/svx/source/customshapes/EnhancedCustomShape2d.cxx @@ -905,22 +905,7 @@ double EnhancedCustomShape2d::GetEquationValueAsDouble( const sal_Int32 nIndex ) return fNumber; } -sal_Int32 EnhancedCustomShape2d::GetAdjustValueAsInteger( const sal_Int32 nIndex, const sal_Int32 nDefault ) const -{ - sal_Int32 nNumber = nDefault; - if ( nIndex < seqAdjustmentValues.getLength() ) - { - if ( seqAdjustmentValues[ nIndex ].Value.getValueTypeClass() == TypeClass_DOUBLE ) - { - double fNumber = 0; - seqAdjustmentValues[ nIndex ].Value >>= fNumber; - nNumber = (sal_Int32)fNumber; - } - else - seqAdjustmentValues[ nIndex ].Value >>= nNumber; - } - return nNumber; -} + bool EnhancedCustomShape2d::SetAdjustValueAsDouble( const double& rValue, const sal_Int32 nIndex ) { bool bRetValue = false; |