diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-16 14:05:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-18 09:17:43 +0200 |
commit | 4c05834a363535804d2cf5892704e19a5bb4f966 (patch) | |
tree | 43226f521a491e833bdd3f18b1655e945018ba64 /unotools | |
parent | 60861faa8653afebb504cfbcaeed633d2373a27d (diff) |
loplugin:unusedmethods
Change-Id: I1c50d176e793397a1f9625f797a3750cf191a61c
Reviewed-on: https://gerrit.libreoffice.org/37679
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/pathoptions.cxx | 14 | ||||
-rw-r--r-- | unotools/source/ucbhelper/ucbhelper.cxx | 25 |
2 files changed, 1 insertions, 38 deletions
diff --git a/unotools/source/config/pathoptions.cxx b/unotools/source/config/pathoptions.cxx index 6bdf6e0606d5..7b42f63b98fe 100644 --- a/unotools/source/config/pathoptions.cxx +++ b/unotools/source/config/pathoptions.cxx @@ -88,7 +88,6 @@ class SvtPathOptions_Impl mutable EnumToHandleMap m_aMapEnumToPropHandle; VarNameSet m_aSystemPathVarNames; - LanguageTag m_aLanguageTag; OUString m_aEmptyString; mutable ::osl::Mutex m_aMutex; @@ -151,8 +150,6 @@ class SvtPathOptions_Impl OUString SubstVar( const OUString& rVar ) const; OUString ExpandMacros( const OUString& rPath ) const; OUString UsePathVariables( const OUString& rPath ) const; - - const LanguageTag& GetLanguageTag() const { return m_aLanguageTag; } }; // global ---------------------------------------------------------------- @@ -397,8 +394,7 @@ OUString SvtPathOptions_Impl::SubstVar( const OUString& rVar ) const } SvtPathOptions_Impl::SvtPathOptions_Impl() : - m_aPathArray( (sal_Int32)SvtPathOptions::PATH_COUNT ), - m_aLanguageTag( LANGUAGE_DONTKNOW ) + m_aPathArray( (sal_Int32)SvtPathOptions::PATH_COUNT ) { Reference< XComponentContext > xContext = comphelper::getProcessComponentContext(); @@ -441,9 +437,6 @@ SvtPathOptions_Impl::SvtPathOptions_Impl() : { m_aSystemPathVarNames.insert( OUString::createFromAscii( aVarNameAttribute[i].pVarName ) ); } - - // Set language type! - m_aLanguageTag.reset( ConfigManager::getLocale() ); } // class SvtPathOptions -------------------------------------------------- @@ -844,9 +837,4 @@ bool SvtPathOptions::SearchFile( OUString& rIniFile, Paths ePath ) return bRet; } -const LanguageTag& SvtPathOptions::GetLanguageTag() const -{ - return pImpl->GetLanguageTag(); -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/unotools/source/ucbhelper/ucbhelper.cxx b/unotools/source/ucbhelper/ucbhelper.cxx index f9eabf948e29..417a70bba7d6 100644 --- a/unotools/source/ucbhelper/ucbhelper.cxx +++ b/unotools/source/ucbhelper/ucbhelper.cxx @@ -304,31 +304,6 @@ bool utl::UCBContentHelper::MakeFolder( } } -sal_Int64 utl::UCBContentHelper::GetSize(OUString const & url) { - try { - sal_Int64 n = 0; - bool ok = (content(url).getPropertyValue("Size") >>= n); - SAL_INFO_IF( - !ok, "unotools.ucbhelper", - "UCBContentHelper::GetSize(" << url - << "): Size cannot be determined"); - return n; - } catch (css::uno::RuntimeException const &) { - throw; - } catch (css::ucb::CommandAbortedException const &) { - assert(false && "this cannot happen"); - throw; - } catch (css::uno::Exception const &) { - css::uno::Any e(cppu::getCaughtException()); - SAL_INFO( - "unotools.ucbhelper", - "UCBContentHelper::GetSize(" << url << ") " - << e.getValueType().getTypeName() << " \"" - << e.get<css::uno::Exception>().Message << '"'); - return 0; - } -} - bool utl::UCBContentHelper::IsYounger( OUString const & younger, OUString const & older) { |