From 62d50671919424ca4dd80cd7733b7b259132b9ab Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Tue, 3 Sep 2013 12:02:53 -0300 Subject: Remove more unused methods Change-Id: I8fec40d767905bcca366257a67f669eaa1055cbc Reviewed-on: https://gerrit.libreoffice.org/5789 Tested-by: LibreOffice gerrit bot Reviewed-by: Marcos Souza Reviewed-by: Thomas Arnhold Tested-by: Thomas Arnhold --- unotools/source/config/configitem.cxx | 38 ----------------------------------- 1 file changed, 38 deletions(-) (limited to 'unotools') diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx index d82af6781f57..4597cc1fd634 100644 --- a/unotools/source/config/configitem.cxx +++ b/unotools/source/config/configitem.cxx @@ -1089,44 +1089,6 @@ sal_Bool ConfigItem::ReplaceSetProperties( return bRet; } -sal_Bool ConfigItem::getUniqueSetElementName( const OUString& _rSetNode, OUString& _rName) -{ - Reference xHierarchyAccess = GetTree(); - sal_Bool bRet = sal_False; - if(xHierarchyAccess.is()) - { - try - { - Reference< XNameAccess > xSetNode; - xHierarchyAccess->getByHierarchicalName(_rSetNode) >>= xSetNode; - if (xSetNode.is()) - { - const sal_uInt32 nPrime = 65521; // a prime number - const sal_uInt32 nPrimeLess2 = nPrime - 2; - sal_uInt32 nEngendering = (rand() % nPrimeLess2) + 2; // the engendering of the field - - // the element which will loop through the field - sal_uInt32 nFieldElement = nEngendering; - - for (; 1 != nFieldElement; nFieldElement = (nFieldElement * nEngendering) % nPrime) - { - OUString sThisRoundTrial = _rName; - sThisRoundTrial += OUString::number(nFieldElement); - - if (!xSetNode->hasByName(sThisRoundTrial)) - { - _rName = sThisRoundTrial; - bRet = sal_True; - break; - } - } - } - } - CATCH_INFO("Exception from getUniqueSetElementName(): ") - } - return bRet; -} - sal_Bool ConfigItem::AddNode(const OUString& rNode, const OUString& rNewNode) { ValueCounter_Impl aCounter(pImpl->nInValueChange); -- cgit