From 664db0d945fbb23e115eeea8377e3a4e88541da1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 9 Oct 2018 11:12:52 +0200 Subject: loplugin:unusedmethods Change-Id: Icd7a0f9909f36363b307b4fe7ee920183881afbb Reviewed-on: https://gerrit.libreoffice.org/61576 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cui/Library_cui.mk | 1 - cui/source/options/personalization.cxx | 1 - cui/source/options/personasdochandler.cxx | 71 ------------------------------- cui/source/options/personasdochandler.hxx | 51 ---------------------- 4 files changed, 124 deletions(-) delete mode 100644 cui/source/options/personasdochandler.cxx delete mode 100644 cui/source/options/personasdochandler.hxx (limited to 'cui') diff --git a/cui/Library_cui.mk b/cui/Library_cui.mk index a959742a906c..4db46539816c 100644 --- a/cui/Library_cui.mk +++ b/cui/Library_cui.mk @@ -177,7 +177,6 @@ $(eval $(call gb_Library_add_exception_objects,cui,\ cui/source/options/optupdt \ $(call gb_Helper_optional,DESKTOP,\ cui/source/options/personalization) \ - cui/source/options/personasdochandler \ cui/source/options/radiobtnbox \ cui/source/options/sdbcdriverenum \ cui/source/options/securityoptions \ diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx index 97da2d1878d1..0c88f9adf325 100644 --- a/cui/source/options/personalization.cxx +++ b/cui/source/options/personalization.cxx @@ -10,7 +10,6 @@ #include #include "personalization.hxx" -#include "personasdochandler.hxx" #include #include diff --git a/cui/source/options/personasdochandler.cxx b/cui/source/options/personasdochandler.cxx deleted file mode 100644 index 90809abaa99d..000000000000 --- a/cui/source/options/personasdochandler.cxx +++ /dev/null @@ -1,71 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ - -#include "personasdochandler.hxx" - -using namespace ::com::sun::star; -using namespace ::com::sun::star::uno; - -// XDocumentHandler -void SAL_CALL -PersonasDocHandler::startDocument() -{ -} - -void SAL_CALL -PersonasDocHandler::endDocument() -{ -} - -void SAL_CALL -PersonasDocHandler::characters( const OUString & aChars) -{ - if( m_isLearnmoreTag ) - m_vLearnmoreURLs.push_back( aChars ); -} - -void SAL_CALL -PersonasDocHandler::ignorableWhitespace( const OUString & ) -{ -} - -void SAL_CALL -PersonasDocHandler::processingInstruction( - const OUString &, const OUString & ) -{ -} - -void SAL_CALL -PersonasDocHandler::setDocumentLocator( - const Reference< xml::sax::XLocator >& ) -{ -} - -void SAL_CALL -PersonasDocHandler::startElement( const OUString& aName, - const Reference< xml::sax::XAttributeList > &xAttribs ) -{ - if( aName == "searchresults" ) - { - OUString aTotalResults = xAttribs->getValueByName( "total_results" ); - if( aTotalResults != "0" ) - m_hasResults = true; - } - - if ( aName == "learnmore" ) - m_isLearnmoreTag = true; - else - m_isLearnmoreTag = false; -} - -void SAL_CALL PersonasDocHandler::endElement( const OUString & ) -{ -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cui/source/options/personasdochandler.hxx b/cui/source/options/personasdochandler.hxx deleted file mode 100644 index 3e3f58ef5d92..000000000000 --- a/cui/source/options/personasdochandler.hxx +++ /dev/null @@ -1,51 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ - -#ifndef INCLUDED_CUI_SOURCE_OPTIONS_PERSONASDOCHANDLER_HXX -#define INCLUDED_CUI_SOURCE_OPTIONS_PERSONASDOCHANDLER_HXX - -#include -#include -#include -#include - -class PersonasDocHandler : public ::cppu::WeakImplHelper< css::xml::sax::XDocumentHandler > -{ -private: - std::vector m_vLearnmoreURLs; - bool m_isLearnmoreTag, m_hasResults; -public: - PersonasDocHandler(){ m_isLearnmoreTag = false; m_hasResults = false; } - const std::vector& getLearnmoreURLs() { return m_vLearnmoreURLs; } - bool hasResults() { return m_hasResults; } - - // XDocumentHandler - virtual void SAL_CALL startDocument() override; - - virtual void SAL_CALL endDocument() override; - - virtual void SAL_CALL startElement( const OUString& aName, - const css::uno::Reference< css::xml::sax::XAttributeList > & xAttribs ) override; - - virtual void SAL_CALL endElement( const OUString & aName ) override; - - virtual void SAL_CALL characters( const OUString & aChars ) override; - - virtual void SAL_CALL ignorableWhitespace( const OUString & aWhitespaces ) override; - - virtual void SAL_CALL processingInstruction( - const OUString & aTarget, const OUString & aData ) override; - - virtual void SAL_CALL setDocumentLocator( - const css::uno::Reference< css::xml::sax::XLocator >& xLocator ) override; -}; - -#endif // INCLUDED_CUI_SOURCE_OPTIONS_PERSONASDOCHANDLER_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit