summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-06-08 20:04:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-09 12:08:15 +0200
commit485300f9aef53f63e24339422b1dd2bfa12d543e (patch)
tree3e3f5aca8dbbade3ed18a68da0b57ace4cc2bee5 /xmloff
parent0e1a0ecffa055062a21815ab13eb6e4f8c769b8f (diff)
loplugin:unusedmethods
Change-Id: Ib89ab59f7ad7e90b2a44ddd122176cde904fba4d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135520 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmluconv.cxx59
1 files changed, 0 insertions, 59 deletions
diff --git a/xmloff/source/core/xmluconv.cxx b/xmloff/source/core/xmluconv.cxx
index 2bce27032844..07e0e0c0b77c 100644
--- a/xmloff/source/core/xmluconv.cxx
+++ b/xmloff/source/core/xmluconv.cxx
@@ -550,37 +550,6 @@ bool SvXMLTokenEnumerator::getNextToken( std::u16string_view& rToken )
return true;
}
-static bool lcl_getPositions(std::u16string_view _sValue, std::u16string_view& _rContentX, std::u16string_view& _rContentY, std::u16string_view& _rContentZ)
-{
- if(_sValue.empty() || _sValue[0] != '(')
- return false;
-
- size_t nPos(1);
- size_t nFound = _sValue.find(' ', nPos);
-
- if(nFound == std::u16string_view::npos || nFound <= nPos)
- return false;
-
- _rContentX = _sValue.substr(nPos, nFound - nPos);
-
- nPos = nFound + 1;
- nFound = _sValue.find(' ', nPos);
-
- if(nFound == std::u16string_view::npos || nFound <= nPos)
- return false;
-
- _rContentY = _sValue.substr(nPos, nFound - nPos);
-
- nPos = nFound + 1;
- nFound = _sValue.find(')', nPos);
-
- if(nFound == std::u16string_view::npos || nFound <= nPos)
- return false;
-
- _rContentZ = _sValue.substr(nPos, nFound - nPos);
- return true;
-}
-
static bool lcl_getPositions(std::string_view _sValue, std::string_view& _rContentX, std::string_view& _rContentY, std::string_view& _rContentZ)
{
if(_sValue.empty() || _sValue[0] != '(')
@@ -614,34 +583,6 @@ static bool lcl_getPositions(std::string_view _sValue, std::string_view& _rConte
}
/** convert string to ::basegfx::B3DVector */
-bool SvXMLUnitConverter::convertB3DVector( ::basegfx::B3DVector& rVector, std::u16string_view rValue )
-{
- std::u16string_view aContentX,aContentY,aContentZ;
- if ( !lcl_getPositions(rValue,aContentX,aContentY,aContentZ) )
- return false;
-
- rtl_math_ConversionStatus eStatus;
-
- rVector.setX(::rtl::math::stringToDouble(aContentX, '.',
- ',', &eStatus));
-
- if( eStatus != rtl_math_ConversionStatus_Ok )
- return false;
-
- rVector.setY(::rtl::math::stringToDouble(aContentY, '.',
- ',', &eStatus));
-
- if( eStatus != rtl_math_ConversionStatus_Ok )
- return false;
-
- rVector.setZ(::rtl::math::stringToDouble(aContentZ, '.',
- ',', &eStatus));
-
-
- return ( eStatus == rtl_math_ConversionStatus_Ok );
-}
-
-/** convert string to ::basegfx::B3DVector */
bool SvXMLUnitConverter::convertB3DVector( ::basegfx::B3DVector& rVector, std::string_view rValue )
{
std::string_view aContentX,aContentY,aContentZ;