From 705e5fe94769415cfca60c73eebb8232464645b2 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 18 Nov 2011 08:56:49 +0000 Subject: callcatcher: remove some unused code --- unotools/inc/unotools/bootstrap.hxx | 3 --- unotools/source/config/bootstrap.cxx | 17 ----------------- 2 files changed, 20 deletions(-) (limited to 'unotools') diff --git a/unotools/inc/unotools/bootstrap.hxx b/unotools/inc/unotools/bootstrap.hxx index 2c9d17ff607a..5a98181457c4 100644 --- a/unotools/inc/unotools/bootstrap.hxx +++ b/unotools/inc/unotools/bootstrap.hxx @@ -80,9 +80,6 @@ namespace utl /// get a file URL to the user installation [${userurl}] static PathStatus locateUserInstallation(rtl::OUString& _rURL); - /// get a file URL to the shared data directory [default is ${insturl}/share] - static PathStatus locateSharedData(rtl::OUString& _rURL); - /// get a file URL to the user data directory [default is ${userurl}/user] static PathStatus locateUserData(rtl::OUString& _rURL); diff --git a/unotools/source/config/bootstrap.cxx b/unotools/source/config/bootstrap.cxx index 157f869460de..d3ca6358ed2f 100644 --- a/unotools/source/config/bootstrap.cxx +++ b/unotools/source/config/bootstrap.cxx @@ -675,24 +675,7 @@ PathStatus Bootstrap::locateUserInstallation(OUString& _rURL) _rURL = aPathData.path; return aPathData.status; } -// --------------------------------------------------------------------------------------- - -PathStatus Bootstrap::locateSharedData(OUString& _rURL) -{ - OUString const csShareDirItem(RTL_CONSTASCII_USTRINGPARAM(BOOTSTRAP_ITEM_SHAREDIR)); - rtl::Bootstrap aData( data().getImplName() ); - - if ( aData.getFrom(csShareDirItem, _rURL) ) - { - return checkStatusAndNormalizeURL(_rURL); - } - else - { - OUString const csShareDir(RTL_CONSTASCII_USTRINGPARAM(BOOTSTRAP_DIRNAME_SHAREDIR)); - return getDerivedPath(_rURL, data().aBaseInstall_, csShareDir, aData, csShareDirItem); - } -} // --------------------------------------------------------------------------------------- PathStatus Bootstrap::locateUserData(OUString& _rURL) -- cgit