summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-09 11:12:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-09 14:16:36 +0200
commit664db0d945fbb23e115eeea8377e3a4e88541da1 (patch)
tree7105b54a8a7b5d2eca45fee1b3ff7f326e99e81a /cui
parentc11ee0f7b0e4e7bf4d1e2e5bb4309f24b917ce79 (diff)
loplugin:unusedmethods
Change-Id: Icd7a0f9909f36363b307b4fe7ee920183881afbb Reviewed-on: https://gerrit.libreoffice.org/61576 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r--cui/Library_cui.mk1
-rw-r--r--cui/source/options/personalization.cxx1
-rw-r--r--cui/source/options/personasdochandler.cxx71
-rw-r--r--cui/source/options/personasdochandler.hxx51
4 files changed, 0 insertions, 124 deletions
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 <config_folders.h>
#include "personalization.hxx"
-#include "personasdochandler.hxx"
#include <comphelper/processfactory.hxx>
#include <officecfg/Office/Common.hxx>
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 <cppuhelper/implbase.hxx>
-#include <com/sun/star/xml/sax/XAttributeList.hpp>
-#include <com/sun/star/xml/sax/XParser.hpp>
-#include <vector>
-
-class PersonasDocHandler : public ::cppu::WeakImplHelper< css::xml::sax::XDocumentHandler >
-{
-private:
- std::vector<OUString> m_vLearnmoreURLs;
- bool m_isLearnmoreTag, m_hasResults;
-public:
- PersonasDocHandler(){ m_isLearnmoreTag = false; m_hasResults = false; }
- const std::vector<OUString>& 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: */