Kaydet (Commit) 593206bd authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

loplugin:unusedmethods hwpfilter,i18npool

Change-Id: Ied85d93019d0f6c01c14045758b405f2ac316676
Reviewed-on: https://gerrit.libreoffice.org/16783Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst c4379aac
...@@ -68,7 +68,6 @@ private: ...@@ -68,7 +68,6 @@ private:
void makeSubSup(Node *res); void makeSubSup(Node *res);
void makeFraction(Node *res); void makeFraction(Node *res);
void makeDecoration(Node *res); void makeDecoration(Node *res);
void makeFunction(Node *res);
void makeRoot(Node *res); void makeRoot(Node *res);
void makeAccent(Node *res); void makeAccent(Node *res);
void makeParenth(Node *res); void makeParenth(Node *res);
......
...@@ -71,11 +71,6 @@ hchar_string HBox::GetString() ...@@ -71,11 +71,6 @@ hchar_string HBox::GetString()
} }
hunit HBox::Height(CharShape *csty)
{
return( csty->size );
}
// skip block // skip block
SkipData::SkipData(hchar hch) SkipData::SkipData(hchar hch)
: HBox(hch) : HBox(hch)
...@@ -378,12 +373,6 @@ TxtBox::~TxtBox() ...@@ -378,12 +373,6 @@ TxtBox::~TxtBox()
} }
hunit TxtBox::Height(CharShape * csty)
{
return (style.anchor_type == CHAR_ANCHOR) ? box_ys : csty->size;
}
// picture(11) // picture(11)
Picture::Picture() Picture::Picture()
...@@ -422,12 +411,6 @@ int Picture::Type() ...@@ -422,12 +411,6 @@ int Picture::Type()
} }
hunit Picture::Height(CharShape * sty)
{
return (style.anchor_type == CHAR_ANCHOR) ? box_ys : sty->size;
}
// line(14) // line(14)
// hidden(15) // hidden(15)
Hidden::~Hidden() Hidden::~Hidden()
......
...@@ -53,10 +53,6 @@ struct HBox ...@@ -53,10 +53,6 @@ struct HBox
* @returns The Size of HBox object * @returns The Size of HBox object
*/ */
int WSize(); 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. * Read properties from HIODevice object like stream, file, memory.
* *
...@@ -391,8 +387,6 @@ struct TxtBox: public FBox ...@@ -391,8 +387,6 @@ struct TxtBox: public FBox
int Type() { return type; } int Type() { return type; }
virtual bool Read(HWPFile &hwpf) SAL_OVERRIDE; virtual bool Read(HWPFile &hwpf) SAL_OVERRIDE;
virtual hunit Height(CharShape *csty) SAL_OVERRIDE;
}; };
#define ALLOWED_GAP 5 #define ALLOWED_GAP 5
...@@ -662,8 +656,6 @@ struct Picture: public FBox ...@@ -662,8 +656,6 @@ struct Picture: public FBox
int Type (); int Type ();
virtual bool Read (HWPFile &hwpf) SAL_OVERRIDE; virtual bool Read (HWPFile &hwpf) SAL_OVERRIDE;
virtual hunit Height (CharShape *sty) SAL_OVERRIDE;
}; };
// line (14) // line (14)
......
...@@ -206,8 +206,6 @@ class DLLEXPORT HWPInfo ...@@ -206,8 +206,6 @@ class DLLEXPORT HWPInfo
~HWPInfo(void); ~HWPInfo(void);
bool Read(HWPFile &hwpf); bool Read(HWPFile &hwpf);
bool Write(CTextOut &txtf);
bool Write(CHTMLOut &html);
}; };
......
...@@ -117,8 +117,6 @@ class DLLEXPORT HWPPara ...@@ -117,8 +117,6 @@ class DLLEXPORT HWPPara
~HWPPara(void); ~HWPPara(void);
bool Read(HWPFile &hwpf, unsigned char flag = 0); bool Read(HWPFile &hwpf, unsigned char flag = 0);
int Write(CTextOut &txtf);
int Write(CHTMLOut &html);
void SetNext(HWPPara *n) { _next = n; }; void SetNext(HWPPara *n) { _next = n; };
...@@ -132,10 +130,6 @@ class DLLEXPORT HWPPara ...@@ -132,10 +130,6 @@ class DLLEXPORT HWPPara
*/ */
ParaShape& GetParaShape(void) { return pshape;} ParaShape& GetParaShape(void) { return pshape;}
/**
* Returns previous paragraph.
*/
HWPPara *Prev(void);
/** /**
* Returns next paragraph. * Returns next paragraph.
*/ */
...@@ -143,7 +137,6 @@ class DLLEXPORT HWPPara ...@@ -143,7 +137,6 @@ class DLLEXPORT HWPPara
int HomePos(int line) const; int HomePos(int line) const;
int EndPos(int line) const; int EndPos(int line) const;
int LineLen(int line) const;
private: private:
HBox *readHBox(HWPFile &); HBox *readHBox(HWPFile &);
...@@ -165,10 +158,6 @@ inline int HWPPara::EndPos(int line) const ...@@ -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 #endif // INCLUDED_HWPFILTER_SOURCE_HPARA_H
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -228,12 +228,10 @@ class DLLEXPORT HWPFile ...@@ -228,12 +228,10 @@ class DLLEXPORT HWPFile
HWPFont& GetHWPFont(void) { return _hwpFont; } HWPFont& GetHWPFont(void) { return _hwpFont; }
HWPStyle& GetHWPStyle(void) { return _hwpStyle; } HWPStyle& GetHWPStyle(void) { return _hwpStyle; }
HWPPara *GetFirstPara(void) { return plist.front(); } HWPPara *GetFirstPara(void) { return plist.front(); }
HWPPara *GetLastPara(void) { return plist.back(); }
EmPicture *GetEmPicture(Picture *pic); EmPicture *GetEmPicture(Picture *pic);
EmPicture *GetEmPictureByName(char * name); EmPicture *GetEmPictureByName(char * name);
HyperText *GetHyperText(); HyperText *GetHyperText();
FBox *GetBoxHead (void) { return blist.size()?blist.front():0; }
ParaShape *getParaShape(int); ParaShape *getParaShape(int);
CharShape *getCharShape(int); CharShape *getCharShape(int);
FBoxStyle *getFBoxStyle(int); FBoxStyle *getFBoxStyle(int);
......
...@@ -118,7 +118,6 @@ class MzString ...@@ -118,7 +118,6 @@ class MzString
// Access to specific characters // Access to specific characters
//char &operator [] (int n); //char &operator [] (int n);
char operator [] (int n); char operator [] (int n);
char last();
// Comparison // Comparison
// Return: // Return:
...@@ -130,8 +129,6 @@ class MzString ...@@ -130,8 +129,6 @@ class MzString
// Searching for parts // Searching for parts
int find (char c); int find (char c);
int find (char c, int pos); int find (char c, int pos);
int find (char *);
int find (char *, int pos);
int rfind (char c); int rfind (char c);
int rfind (char c, int pos); int rfind (char c, int pos);
......
...@@ -183,19 +183,6 @@ public: ...@@ -183,19 +183,6 @@ public:
bool bRelaxed = true ); bool bRelaxed = true );
inline int GetLimit() const { return nLimit; } 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! // Calculate current balance, keep this inline for performance reasons!
// c == cpPattern[jj] == cString[ii] // c == cpPattern[jj] == cString[ii]
...@@ -231,40 +218,6 @@ public: ...@@ -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 #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment