From 808c2b9ff52bea3c1e0580e7ac2aa75406d6e2d1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 18 May 2016 15:04:07 +0200 Subject: loplugin:unusedmethods in l10ntools to lotuswordpro Change-Id: Ibda82734821f3faa9388f7508e6a3e39e5b5007d Reviewed-on: https://gerrit.libreoffice.org/25106 Tested-by: Jenkins Reviewed-by: Noel Grandin --- lotuswordpro/source/filter/bento.hxx | 15 ----- lotuswordpro/source/filter/lwpobj.hxx | 2 - lotuswordpro/source/filter/lwpslvlist.hxx | 83 ------------------------- lotuswordpro/source/filter/lwpsortopt.hxx | 1 - lotuswordpro/source/filter/lwptabrack.cxx | 1 - lotuswordpro/source/filter/lwpusrdicts.hxx | 1 - lotuswordpro/source/filter/utlist.hxx | 11 ---- lotuswordpro/source/filter/xfilter/xfbreaks.hxx | 6 -- lotuswordpro/source/filter/xfilter/xfchange.cxx | 13 ---- lotuswordpro/source/filter/xfilter/xfchange.hxx | 10 --- lotuswordpro/source/filter/xfilter/xflist.hxx | 18 ------ 11 files changed, 161 deletions(-) delete mode 100644 lotuswordpro/source/filter/lwpslvlist.hxx (limited to 'lotuswordpro') diff --git a/lotuswordpro/source/filter/bento.hxx b/lotuswordpro/source/filter/bento.hxx index 2094a7f50697..1530f034d4ac 100644 --- a/lotuswordpro/source/filter/bento.hxx +++ b/lotuswordpro/source/filter/bento.hxx @@ -162,9 +162,6 @@ public: // Methods cpNamedObject = pObj; } - CBenNamedObjectListElmt(pCBenNamedObject pNamedObject, - pCBenNamedObjectListElmt pPrev) : CUtListElmt(pPrev) - { cpNamedObject = pNamedObject; } pCBenNamedObject GetNamedObject() { return cpNamedObject; } private: // Data @@ -276,12 +273,6 @@ public: // Internal methods cpProperty = pProperty; } - CBenValue(pCBenProperty pProperty, BenObjectID TypeID) : - CBenIDListElmt(TypeID) - { - cpProperty = pProperty; - cpReferencedList = nullptr; - } inline pCBenValueSegment GetNextValueSegment(pCBenValueSegment pCurrValueSegment); inline pLtcBenContainer GetContainer(); @@ -329,12 +320,6 @@ public: // Internal methods unsigned short Size) : CUtListElmt(&pValue->GetValueSegments()) { cpValue = pValue; cImmediate = true; UtHugeMemcpy(cImmData, pImmData, Size); cSize = Size; } - CBenValueSegment(BenContainerPos Pos, unsigned long Size) - { cpValue = nullptr; cImmediate = false; cPos = Pos; - cSize = Size; } - CBenValueSegment(const void * pImmData, unsigned short Size) - { cpValue = nullptr; cImmediate = true; - UtHugeMemcpy(cImmData, pImmData, Size); cSize = Size; } bool IsImmediate() { return cImmediate; } BenContainerPos GetPosition() { return cPos; } unsigned long GetSize() { return cSize; } diff --git a/lotuswordpro/source/filter/lwpobj.hxx b/lotuswordpro/source/filter/lwpobj.hxx index 7556a4785998..041e3e1e069a 100644 --- a/lotuswordpro/source/filter/lwpobj.hxx +++ b/lotuswordpro/source/filter/lwpobj.hxx @@ -80,8 +80,6 @@ class LwpFoundry; */ class LwpObject: public salhelper::SimpleReferenceObject { -private: - LwpObject();//Don't permit to create an object without header public: LwpObject(LwpObjectHeader objHdr, LwpSvStream* pStrm); protected: diff --git a/lotuswordpro/source/filter/lwpslvlist.hxx b/lotuswordpro/source/filter/lwpslvlist.hxx deleted file mode 100644 index 82c009b5f40f..000000000000 --- a/lotuswordpro/source/filter/lwpslvlist.hxx +++ /dev/null @@ -1,83 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * The Contents of this file are made available subject to the terms of - * either of the following licenses - * - * - GNU Lesser General Public License Version 2.1 - * - Sun Industry Standards Source License Version 1.1 - * - * Sun Microsystems Inc., October, 2000 - * - * GNU Lesser General Public License Version 2.1 - * ============================================= - * Copyright 2000 by Sun Microsystems, Inc. - * 901 San Antonio Road, Palo Alto, CA 94303, USA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License version 2.1, as published by the Free Software Foundation. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA - * - * - * Sun Industry Standards Source License Version 1.1 - * ================================================= - * The contents of this file are subject to the Sun Industry Standards - * Source License Version 1.1 (the "License"); You may not use this file - * except in compliance with the License. You may obtain a copy of the - * License at http://www.openoffice.org/license.html. - * - * Software provided under this License is provided on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, - * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, - * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. - * See the License for the specific provisions governing your rights and - * obligations concerning the Software. - * - * The Initial Developer of the Original Code is: IBM Corporation - * - * Copyright: 2008 by IBM Corporation - * - * All Rights Reserved. - * - * Contributor(s): _______________________________________ - * - * - ************************************************************************/ -/************************************************************************* - * @file - * single list. - ************************************************************************/ -#ifndef INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_LWPSLVLIST_HXX -#define INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_LWPSLVLIST_HXX - -#include "lwpobjstrm.hxx" -#include "lwpfilehdr.hxx" -#include "lwpobjid.hxx" - -class LwpSLVList -{ -public: - LwpSLVList(){} - explicit LwpSLVList(LwpObjectStream* pStrm){Read(pStrm);} - void Read(LwpObjectStream* pStrm) - { - m_NextID.ReadIndexed(pStrm); - if( LwpFileHeader::m_nFileRevision < 0x0006 ) - pStrm->SkipExtra(); - } -private: - LwpObjectID m_NextID; -}; - -#endif -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/lotuswordpro/source/filter/lwpsortopt.hxx b/lotuswordpro/source/filter/lwpsortopt.hxx index 6874c472f439..1830fb94c4aa 100644 --- a/lotuswordpro/source/filter/lwpsortopt.hxx +++ b/lotuswordpro/source/filter/lwpsortopt.hxx @@ -83,7 +83,6 @@ public: class LwpSortOption { public: - LwpSortOption(){} explicit LwpSortOption(LwpObjectStream* pStrm); ~LwpSortOption(){} public: diff --git a/lotuswordpro/source/filter/lwptabrack.cxx b/lotuswordpro/source/filter/lwptabrack.cxx index 582b7110336d..25b3cfa878b9 100644 --- a/lotuswordpro/source/filter/lwptabrack.cxx +++ b/lotuswordpro/source/filter/lwptabrack.cxx @@ -59,7 +59,6 @@ ************************************************************************/ #include "lwptabrack.hxx" #include "lwpobjstrm.hxx" -#include "lwpslvlist.hxx" #include diff --git a/lotuswordpro/source/filter/lwpusrdicts.hxx b/lotuswordpro/source/filter/lwpusrdicts.hxx index 08c5b147b4d6..53bc789e885c 100644 --- a/lotuswordpro/source/filter/lwpusrdicts.hxx +++ b/lotuswordpro/source/filter/lwpusrdicts.hxx @@ -69,7 +69,6 @@ class LwpUserDictFiles { public: - LwpUserDictFiles(){} explicit LwpUserDictFiles(LwpObjectStream *pStrm); ~LwpUserDictFiles(){} static void Read(LwpObjectStream *pStrm); diff --git a/lotuswordpro/source/filter/utlist.hxx b/lotuswordpro/source/filter/utlist.hxx index eeafdf2e835e..cc6af90923eb 100644 --- a/lotuswordpro/source/filter/utlist.hxx +++ b/lotuswordpro/source/filter/utlist.hxx @@ -95,17 +95,6 @@ private: // Data pCUtListElmt cpPrev; }; -class CUtComparableListElmt : public CUtListElmt -{ -public: // Methods - CUtComparableListElmt() { ; } - explicit CUtComparableListElmt(pCUtComparableListElmt pPrev) : - CUtListElmt(pPrev) { ; } - explicit CUtComparableListElmt(pCUtList pList) : CUtListElmt(pList) { ; } - -public: // Pure virtual methods -}; - class CUtList { public: // Methods diff --git a/lotuswordpro/source/filter/xfilter/xfbreaks.hxx b/lotuswordpro/source/filter/xfilter/xfbreaks.hxx index 9d86a7b4505c..48c86ad425e8 100644 --- a/lotuswordpro/source/filter/xfilter/xfbreaks.hxx +++ b/lotuswordpro/source/filter/xfilter/xfbreaks.hxx @@ -70,9 +70,6 @@ class XFBreaks public: XFBreaks(); - explicit XFBreaks(enumXFBreaks breaks); - -public: /** * @descr Set break type, pls refer to enumXFBreaks. */ @@ -93,9 +90,6 @@ private: inline XFBreaks::XFBreaks() : m_eBreaks(enumXFBreakAuto) {} -inline XFBreaks::XFBreaks(enumXFBreaks breaks) : m_eBreaks(breaks) -{} - inline void XFBreaks::SetBreakType(enumXFBreaks breaks) { m_eBreaks = breaks; diff --git a/lotuswordpro/source/filter/xfilter/xfchange.cxx b/lotuswordpro/source/filter/xfilter/xfchange.cxx index bc0b52226adf..5a76235ebc69 100644 --- a/lotuswordpro/source/filter/xfilter/xfchange.cxx +++ b/lotuswordpro/source/filter/xfilter/xfchange.cxx @@ -118,19 +118,6 @@ void XFChangeDelete::ToXml(IXFStream *pStrm) pStrm->EndElement( "text:changed-region" ); } -void XFChange::ToXml(IXFStream *pStrm) -{ - IXFAttrList *pAttrList = pStrm->GetAttrList(); - - pAttrList->Clear(); - if(m_sID.isEmpty()) - return; - pAttrList->AddAttribute( "text:change-id",m_sID); - - pStrm->StartElement( "text:change" ); - pStrm->EndElement( "text:change" ); -} - void XFChangeStart::ToXml(IXFStream *pStrm) { IXFAttrList *pAttrList = pStrm->GetAttrList(); diff --git a/lotuswordpro/source/filter/xfilter/xfchange.hxx b/lotuswordpro/source/filter/xfilter/xfchange.hxx index afd3192da40f..7a185d401ef3 100644 --- a/lotuswordpro/source/filter/xfilter/xfchange.hxx +++ b/lotuswordpro/source/filter/xfilter/xfchange.hxx @@ -104,16 +104,6 @@ public: void ToXml(IXFStream *pStrm) override; }; -class XFChange : public XFContent -{ -public: - XFChange(){} - virtual ~XFChange(){} - void ToXml(IXFStream *pStrm) override; -private: - OUString m_sID; -}; - class XFChangeStart : public XFContent { public: diff --git a/lotuswordpro/source/filter/xfilter/xflist.hxx b/lotuswordpro/source/filter/xfilter/xflist.hxx index a897144cd431..058fb1b127db 100644 --- a/lotuswordpro/source/filter/xfilter/xflist.hxx +++ b/lotuswordpro/source/filter/xfilter/xflist.hxx @@ -99,24 +99,6 @@ private: }; -class XFUnorderedList : public XFList -{ -public: - XFUnorderedList() - { - SetOrdered(false); - } -}; - -class XFOrderedList : public XFList -{ -public: - XFOrderedList() - { - SetOrdered(true); - } -}; - inline void XFList::SetOrdered(bool ordered) { m_bOrdered = ordered; -- cgit