summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2013-09-03 12:02:53 -0300
committerThomas Arnhold <thomas@arnhold.org>2013-09-04 20:50:19 +0000
commit62d50671919424ca4dd80cd7733b7b259132b9ab (patch)
tree62796e4e952d73685b1380e750d80dde354b2b95 /unotools
parenta25846baf1137e7086292d8d8824a94f6a825166 (diff)
Remove more unused methods
Change-Id: I8fec40d767905bcca366257a67f669eaa1055cbc Reviewed-on: https://gerrit.libreoffice.org/5789 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/configitem.cxx38
1 files changed, 0 insertions, 38 deletions
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<XHierarchicalNameAccess> 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);