[Libreoffice-commits] core.git: hwpfilter/source i18npool/source

Noel Grandin noel at peralex.com
Mon Jul 6 04:55:27 PDT 2015


 hwpfilter/source/formula.h        |    1 
 hwpfilter/source/hbox.cxx         |   17 -------------
 hwpfilter/source/hbox.h           |    8 ------
 hwpfilter/source/hinfo.h          |    2 -
 hwpfilter/source/hpara.h          |   11 --------
 hwpfilter/source/hwpfile.h        |    2 -
 hwpfilter/source/mzstring.h       |    3 --
 i18npool/source/search/levdis.hxx |   47 --------------------------------------
 8 files changed, 91 deletions(-)

New commits:
commit 593206bda7ae6b522a5f29aef25445722aedeb4c
Author: Noel Grandin <noel at peralex.com>
Date:   Fri Jul 3 15:56:19 2015 +0200

    loplugin:unusedmethods hwpfilter,i18npool
    
    Change-Id: Ied85d93019d0f6c01c14045758b405f2ac316676
    Reviewed-on: https://gerrit.libreoffice.org/16783
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/hwpfilter/source/formula.h b/hwpfilter/source/formula.h
index ebdb1ac..22c53f6 100644
--- a/hwpfilter/source/formula.h
+++ b/hwpfilter/source/formula.h
@@ -68,7 +68,6 @@ private:
      void makeSubSup(Node *res);
      void makeFraction(Node *res);
      void makeDecoration(Node *res);
-     void makeFunction(Node *res);
      void makeRoot(Node *res);
      void makeAccent(Node *res);
      void makeParenth(Node *res);
diff --git a/hwpfilter/source/hbox.cxx b/hwpfilter/source/hbox.cxx
index ddcd815..4ef9cbf 100644
--- a/hwpfilter/source/hbox.cxx
+++ b/hwpfilter/source/hbox.cxx
@@ -71,11 +71,6 @@ hchar_string HBox::GetString()
 }
 
 
-hunit HBox::Height(CharShape *csty)
-{
-    return( csty->size );
-}
-
 // skip block
 SkipData::SkipData(hchar hch)
     : HBox(hch)
@@ -378,12 +373,6 @@ TxtBox::~TxtBox()
 }
 
 
-hunit TxtBox::Height(CharShape * csty)
-{
-    return (style.anchor_type == CHAR_ANCHOR) ? box_ys : csty->size;
-}
-
-
 // picture(11)
 
 Picture::Picture()
@@ -422,12 +411,6 @@ int Picture::Type()
 }
 
 
-hunit Picture::Height(CharShape * sty)
-{
-    return (style.anchor_type == CHAR_ANCHOR) ? box_ys : sty->size;
-}
-
-
 // line(14)
 // hidden(15)
 Hidden::~Hidden()
diff --git a/hwpfilter/source/hbox.h b/hwpfilter/source/hbox.h
index 7499bd2..4ceeb27 100644
--- a/hwpfilter/source/hbox.h
+++ b/hwpfilter/source/hbox.h
@@ -54,10 +54,6 @@ struct HBox
  */
         int           WSize();
 /**
- * @returns The Height of HBox object as hunit value.
- */
-        virtual hunit Height(CharShape *csty);
-/**
  * Read properties from HIODevice object like stream, file, memory.
  *
  * @param hwpf HWPFile Object having all information for a hwp file.
@@ -391,8 +387,6 @@ struct TxtBox: public FBox
     int Type()    { return type;  }
 
     virtual bool Read(HWPFile &hwpf) SAL_OVERRIDE;
-
-    virtual hunit  Height(CharShape *csty) SAL_OVERRIDE;
 };
 
 #define ALLOWED_GAP 5
@@ -662,8 +656,6 @@ struct Picture: public FBox
 
     int   Type    ();
     virtual bool Read    (HWPFile &hwpf) SAL_OVERRIDE;
-
-    virtual hunit  Height (CharShape *sty) SAL_OVERRIDE;
 };
 
 // line (14)
diff --git a/hwpfilter/source/hinfo.h b/hwpfilter/source/hinfo.h
index 00bc604..0452f42 100644
--- a/hwpfilter/source/hinfo.h
+++ b/hwpfilter/source/hinfo.h
@@ -206,8 +206,6 @@ class DLLEXPORT HWPInfo
         ~HWPInfo(void);
 
         bool Read(HWPFile &hwpf);
-        bool Write(CTextOut &txtf);
-        bool Write(CHTMLOut &html);
 
 };
 
diff --git a/hwpfilter/source/hpara.h b/hwpfilter/source/hpara.h
index 94bd327..7a6c5e3 100644
--- a/hwpfilter/source/hpara.h
+++ b/hwpfilter/source/hpara.h
@@ -117,8 +117,6 @@ class DLLEXPORT HWPPara
         ~HWPPara(void);
 
         bool  Read(HWPFile &hwpf, unsigned char flag = 0);
-        int   Write(CTextOut &txtf);
-        int   Write(CHTMLOut &html);
 
         void  SetNext(HWPPara *n) { _next = n; };
 
@@ -133,17 +131,12 @@ class DLLEXPORT HWPPara
         ParaShape& GetParaShape(void) { return pshape;}
 
 /**
- * Returns previous paragraph.
- */
-        HWPPara *Prev(void);
-/**
  * Returns next paragraph.
  */
         HWPPara *Next(void) { return _next;}
 
         int HomePos(int line) const;
         int EndPos(int line) const;
-        int LineLen(int line) const;
 
     private:
         HBox *readHBox(HWPFile &);
@@ -165,10 +158,6 @@ inline int HWPPara::EndPos(int line) const
 }
 
 
-inline int HWPPara::LineLen(int line) const
-{
-    return EndPos(line) - HomePos(line);
-}
 #endif // INCLUDED_HWPFILTER_SOURCE_HPARA_H
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/hwpfilter/source/hwpfile.h b/hwpfilter/source/hwpfile.h
index b28c2a4..f044b5d 100644
--- a/hwpfilter/source/hwpfile.h
+++ b/hwpfilter/source/hwpfile.h
@@ -228,12 +228,10 @@ class DLLEXPORT HWPFile
         HWPFont& GetHWPFont(void) { return _hwpFont; }
         HWPStyle& GetHWPStyle(void) { return _hwpStyle; }
         HWPPara *GetFirstPara(void) { return plist.front(); }
-        HWPPara *GetLastPara(void) { return plist.back(); }
 
         EmPicture *GetEmPicture(Picture *pic);
         EmPicture *GetEmPictureByName(char * name);
         HyperText *GetHyperText();
-        FBox *GetBoxHead (void) { return blist.size()?blist.front():0; }
         ParaShape *getParaShape(int);
         CharShape *getCharShape(int);
         FBoxStyle *getFBoxStyle(int);
diff --git a/hwpfilter/source/mzstring.h b/hwpfilter/source/mzstring.h
index b5d2656..5a5d606 100644
--- a/hwpfilter/source/mzstring.h
+++ b/hwpfilter/source/mzstring.h
@@ -118,7 +118,6 @@ class MzString
 // Access to specific characters
 //char      &operator [] (int n);
         char      operator [] (int n);
-        char      last();
 
 // Comparison
 //  Return:
@@ -130,8 +129,6 @@ class MzString
 // Searching for parts
         int       find    (char c);
         int       find    (char c, int pos);
-        int       find    (char *);
-        int       find    (char *, int pos);
         int       rfind   (char c);
         int       rfind   (char c, int pos);
 
diff --git a/i18npool/source/search/levdis.hxx b/i18npool/source/search/levdis.hxx
index d9cb836..e7dcc08 100644
--- a/i18npool/source/search/levdis.hxx
+++ b/i18npool/source/search/levdis.hxx
@@ -183,19 +183,6 @@ public:
                     bool bRelaxed = true );
 
     inline int GetLimit() const     { return nLimit; }
-    inline int GetReplaceP0() const { return nRepP0; }
-    inline int GetInsertQ0() const  { return nInsQ0; }
-    inline int GetDeleteR0() const  { return nDelR0; }
-    inline bool GetSplit() const    { return bSplitCount; }
-    inline int SetLimit( int nNewLimit );
-    inline int SetReplaceP0( int nNewP0 );
-    inline int SetInsertQ0( int nNewQ0 );
-    inline int SetDeleteR0( int nNewR0 );
-    /** SetSplit(true) makes only sense after having called CalcLPQR() for the
-        internal weighs! */
-    inline bool SetSplit( bool bNewSplit );
-
-    inline bool IsNormal( sal_Int32 nPos ) const { return !bpPatIsWild[nPos]; }
 
     // Calculate current balance, keep this inline for performance reasons!
     // c == cpPattern[jj] == cString[ii]
@@ -231,40 +218,6 @@ public:
     }
 };
 
-inline int WLevDistance::SetLimit( int nNewLimit )
-{
-    int nTmp = nLimit;
-    nLimit = nNewLimit;
-    return nTmp;
-}
-
-inline int WLevDistance::SetReplaceP0( int nNewP0 )
-{
-    int nTmp = nRepP0;
-    nRepP0 = nNewP0;
-    return nTmp;
-}
-
-inline int WLevDistance::SetInsertQ0( int nNewQ0 )
-{
-    int nTmp = nInsQ0;
-    nInsQ0 = nNewQ0;
-    return nTmp;
-}
-
-inline int WLevDistance::SetDeleteR0( int nNewR0 )
-{
-    int nTmp = nDelR0;
-    nDelR0 = nNewR0;
-    return nTmp;
-}
-
-inline bool WLevDistance::SetSplit( bool bNewSplit )
-{
-    bool bTmp = bSplitCount;
-    bSplitCount = bNewSplit;
-    return bTmp;
-}
 
 #endif
 


More information about the Libreoffice-commits mailing list