summaryrefslogtreecommitdiffstats
path: root/extensions/source/resource
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/resource')
-rw-r--r--extensions/source/resource/ResourceIndexAccess.cxx11
-rw-r--r--extensions/source/resource/ResourceIndexAccess.hxx2
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: */