diff options
-rw-r--r-- | desktop/source/deployment/registry/dp_backenddb.cxx | 26 | ||||
-rw-r--r-- | desktop/source/deployment/registry/inc/dp_backenddb.hxx | 2 | ||||
-rw-r--r-- | unusedcode.easy | 1 |
3 files changed, 0 insertions, 29 deletions
diff --git a/desktop/source/deployment/registry/dp_backenddb.cxx b/desktop/source/deployment/registry/dp_backenddb.cxx index 1c2b2548c1f5..1f6e5b639a5b 100644 --- a/desktop/source/deployment/registry/dp_backenddb.cxx +++ b/desktop/source/deployment/registry/dp_backenddb.cxx @@ -659,32 +659,6 @@ void RegisteredDb::addEntry(OUString const & url) } } -bool RegisteredDb::getEntry(OUString const & url) -{ - try - { - const OUString sPrefix = getNSPrefix(); - const OUString sEntry = getKeyElementName(); - const OUString sExpression( - sPrefix + ":" + sEntry + "[@url = \"" + url + "\"]"); - Reference<css::xml::dom::XDocument> doc = getDocument(); - Reference<css::xml::dom::XNode> root = doc->getFirstChild(); - - Reference<css::xml::xpath::XXPathAPI> xpathApi = getXPathAPI(); - Reference<css::xml::dom::XNode> aNode = - xpathApi->selectSingleNode(root, sExpression); - - return aNode.is(); - } - catch(const css::uno::Exception &) - { - Any exc( ::cppu::getCaughtException() ); - throw css::deployment::DeploymentException( - "Extension Manager: failed to read data entry in backend db: " + - m_urlDb, 0, exc); - } -} - } // namespace backend } // namespace dp_registry diff --git a/desktop/source/deployment/registry/inc/dp_backenddb.hxx b/desktop/source/deployment/registry/inc/dp_backenddb.hxx index a9e9f3de576d..efe34f1cbad0 100644 --- a/desktop/source/deployment/registry/inc/dp_backenddb.hxx +++ b/desktop/source/deployment/registry/inc/dp_backenddb.hxx @@ -159,8 +159,6 @@ public: void addEntry(OUString const & url); - bool getEntry(OUString const & url); - }; } diff --git a/unusedcode.easy b/unusedcode.easy index f9cbef507231..2ea49e21799b 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -82,7 +82,6 @@ connectivity::sdbcx::OGroup::OGroup(rtl::OUString const&, bool) dbaccess::OBookmarkContainer::dispose() dbaccess::StorageInputStream::close() dbaui::OTableRowView::SetUpdatable(bool) -dp_registry::backend::RegisteredDb::getEntry(rtl::OUString const&) oglcanvas::CanvasHelper::drawPoint(com::sun::star::rendering::XCanvas const*, com::sun::star::geometry::RealPoint2D const&, com::sun::star::rendering::ViewState const&, com::sun::star::rendering::RenderState const&) oglcanvas::TextLayout::draw(com::sun::star::rendering::ViewState const&, com::sun::star::rendering::RenderState const&, com::sun::star::uno::Reference<com::sun::star::rendering::XGraphicDevice> const&) const oox::AttributeList::getUnsignedHex(int) const |