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:
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);
......
......@@ -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()
......
......@@ -53,10 +53,6 @@ struct HBox
* @returns The Size of HBox object
*/
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.
*
......@@ -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)
......
......@@ -206,8 +206,6 @@ class DLLEXPORT HWPInfo
~HWPInfo(void);
bool Read(HWPFile &hwpf);
bool Write(CTextOut &txtf);
bool Write(CHTMLOut &html);
};
......
......@@ -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; };
......@@ -132,10 +130,6 @@ class DLLEXPORT HWPPara
*/
ParaShape& GetParaShape(void) { return pshape;}
/**
* Returns previous paragraph.
*/
HWPPara *Prev(void);
/**
* Returns next paragraph.
*/
......@@ -143,7 +137,6 @@ class DLLEXPORT HWPPara
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: */
......@@ -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);
......
......@@ -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);
......
......@@ -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
......
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