diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-29 12:40:47 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-09-29 15:08:43 +0200 |
commit | 34180700b2686c97cdce0b52ca9578a41a153035 (patch) | |
tree | 073f3753e4483f30efa3c7c769f23971e6a046d5 /extensions/source/resource | |
parent | e710170d906fcb248a5e4ff5a3a90cbf0e20003d (diff) |
loplugin:removeunusedmethods, remove unused stuff
Change-Id: I35456b2a3ad2a84a1d045f09cdfb29e4c19b8350
Diffstat (limited to 'extensions/source/resource')
-rw-r--r-- | extensions/source/resource/ResourceIndexAccess.cxx | 11 | ||||
-rw-r--r-- | extensions/source/resource/ResourceIndexAccess.hxx | 2 |
2 files changed, 0 insertions, 13 deletions
diff --git a/extensions/source/resource/ResourceIndexAccess.cxx b/extensions/source/resource/ResourceIndexAccess.cxx index 403aaf4b9c99..985d331acf0f 100644 --- a/extensions/source/resource/ResourceIndexAccess.cxx +++ b/extensions/source/resource/ResourceIndexAccess.cxx @@ -87,17 +87,6 @@ ResourceIndexAccess::ResourceIndexAccess(Sequence<Any> const& rArgs, Reference<X : m_pResMgr(GetResMgr(rArgs)) {}; -Reference<XInterface> initResourceIndexAccess(ResourceIndexAccess* pResourceIndexAccess) -{ - Reference<XInterface> xResult(static_cast<cppu::OWeakObject*>(pResourceIndexAccess)); - if(!pResourceIndexAccess->hasElements()) - // xResult does not help the client to analyse the problem - // and will crash on getByIndex calls, better just give back an empty Reference - // so that such ResourceStringIndexAccess instances are never release into the wild - throw RuntimeException("resource manager could not get initialized"); - return xResult; -} - Any SAL_CALL ResourceIndexAccess::getByName(const OUString& aName) throw (NoSuchElementException, WrappedTargetException, RuntimeException, std::exception) { diff --git a/extensions/source/resource/ResourceIndexAccess.hxx b/extensions/source/resource/ResourceIndexAccess.hxx index 97a6a49c361f..2eabc8460b35 100644 --- a/extensions/source/resource/ResourceIndexAccess.hxx +++ b/extensions/source/resource/ResourceIndexAccess.hxx @@ -50,7 +50,5 @@ namespace extensions { namespace resource }; }} -::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> initResourceIndexAccess(::extensions::resource::ResourceIndexAccess*); - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |