diff options
author | David Tardon <dtardon@redhat.com> | 2010-11-20 14:02:00 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2010-11-20 16:59:37 +0100 |
commit | 2b7c401e537d654a7469f7840e3e4527b22b2a8e (patch) | |
tree | 074af8abc32cac15187225ed29893d69dc78a304 /desktop/source | |
parent | 45e36ce06f9f4c35578fc7122c6d91ff0d38b112 (diff) |
remove redundant code
Diffstat (limited to 'desktop/source')
-rw-r--r-- | desktop/source/deployment/registry/help/dp_helpbackenddb.cxx | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/desktop/source/deployment/registry/help/dp_helpbackenddb.cxx b/desktop/source/deployment/registry/help/dp_helpbackenddb.cxx index 2f3a566e6151..315b32867760 100644 --- a/desktop/source/deployment/registry/help/dp_helpbackenddb.cxx +++ b/desktop/source/deployment/registry/help/dp_helpbackenddb.cxx @@ -136,40 +136,9 @@ HelpBackendDb::getEntry(::rtl::OUString const & url) ::std::list<OUString> HelpBackendDb::getAllDataUrls() { - try - { - ::std::list<OUString> listRet; - Reference<css::xml::dom::XDocument> doc = getDocument(); - Reference<css::xml::dom::XNode> root = doc->getFirstChild(); - - Reference<css::xml::xpath::XXPathAPI> xpathApi = getXPathAPI(); - const OUString sPrefix = getNSPrefix(); - OUString sExpression( - sPrefix + OUSTR(":help/") + sPrefix + OUSTR(":data-url/text()")); - Reference<css::xml::dom::XNodeList> nodes = - xpathApi->selectNodeList(root, sExpression); - if (nodes.is()) - { - sal_Int32 length = nodes->getLength(); - for (sal_Int32 i = 0; i < length; i++) - listRet.push_back(nodes->item(i)->getNodeValue()); - } - return listRet; - } - catch (css::deployment::DeploymentException& ) - { - throw; - } - catch(css::uno::Exception &) - { - Any exc( ::cppu::getCaughtException() ); - throw css::deployment::DeploymentException( - OUSTR("Extension Manager: failed to read data entry in help backend db: ") + - m_urlDb, 0, exc); - } + return getOneChildFromAllEntries(OUString(RTL_CONSTASCII_USTRINGPARAM("data-url"))); } - } // namespace help } // namespace backend } // namespace dp_registry |