[Libreoffice-commits] core.git: l10ntools/inc linguistic/source lotuswordpro/source

Noel Grandin noel at peralex.com
Thu May 19 06:42:10 UTC 2016


 l10ntools/inc/xmlparse.hxx                      |    1 
 linguistic/source/defs.hxx                      |    9 --
 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 -----
 13 files changed, 171 deletions(-)

New commits:
commit 808c2b9ff52bea3c1e0580e7ac2aa75406d6e2d1
Author: Noel Grandin <noel at peralex.com>
Date:   Wed May 18 15:04:07 2016 +0200

    loplugin:unusedmethods in l10ntools to lotuswordpro
    
    Change-Id: Ibda82734821f3faa9388f7508e6a3e39e5b5007d
    Reviewed-on: https://gerrit.libreoffice.org/25106
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/l10ntools/inc/xmlparse.hxx b/l10ntools/inc/xmlparse.hxx
index 7b0daae..4d1000c 100644
--- a/l10ntools/inc/xmlparse.hxx
+++ b/l10ntools/inc/xmlparse.hxx
@@ -216,7 +216,6 @@ protected:
     void Print(XMLNode *pCur, OStringBuffer& rBuffer, bool bRootelement) const;
 public:
     /// create an element node
-    XMLElement(){}
     XMLElement(
         const OString &rName,    // the element name
         XMLParentNode *pParent   // parent node of this element
diff --git a/linguistic/source/defs.hxx b/linguistic/source/defs.hxx
index 213f812..a42cd89 100644
--- a/linguistic/source/defs.hxx
+++ b/linguistic/source/defs.hxx
@@ -67,21 +67,13 @@ struct LangSvcEntries_Spell : public LangSvcEntries
 {
     css::uno::Sequence< css::uno::Reference< css::linguistic2::XSpellChecker > >  aSvcRefs;
 
-    LangSvcEntries_Spell() : LangSvcEntries() {}
     explicit LangSvcEntries_Spell( const css::uno::Sequence< OUString > &rSvcImplNames ) : LangSvcEntries( rSvcImplNames ) {}
 };
 
-struct LangSvcEntries_Grammar : public LangSvcEntries
-{
-    LangSvcEntries_Grammar() : LangSvcEntries() {}
-    explicit LangSvcEntries_Grammar( const OUString &rSvcImplName ) : LangSvcEntries( rSvcImplName ) {}
-};
-
 struct LangSvcEntries_Hyph : public LangSvcEntries
 {
     css::uno::Sequence< css::uno::Reference< css::linguistic2::XHyphenator > >  aSvcRefs;
 
-    LangSvcEntries_Hyph() : LangSvcEntries() {}
     explicit LangSvcEntries_Hyph( const OUString &rSvcImplName ) : LangSvcEntries( rSvcImplName ) {}
 };
 
@@ -89,7 +81,6 @@ struct LangSvcEntries_Thes : public LangSvcEntries
 {
     css::uno::Sequence< css::uno::Reference< css::linguistic2::XThesaurus > >  aSvcRefs;
 
-    LangSvcEntries_Thes() : LangSvcEntries() {}
     explicit LangSvcEntries_Thes( const css::uno::Sequence< OUString > &rSvcImplNames ) : LangSvcEntries( rSvcImplNames ) {}
 };
 
diff --git a/lotuswordpro/source/filter/bento.hxx b/lotuswordpro/source/filter/bento.hxx
index 2094a7f..1530f03 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 7556a47..041e3e1 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 82c009b..0000000
--- 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 6874c47..1830fb9 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 582b711..25b3cfa 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 <stdexcept>
 
diff --git a/lotuswordpro/source/filter/lwpusrdicts.hxx b/lotuswordpro/source/filter/lwpusrdicts.hxx
index 08c5b14..53bc789 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 eeafdf2..cc6af90 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 9d86a7b..48c86ad 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 bc0b522..5a76235 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 afd3192..7a185d4 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 a897144..058fb1b 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;


More information about the Libreoffice-commits mailing list