summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-03 15:56:19 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-06 11:54:54 +0000
commit593206bda7ae6b522a5f29aef25445722aedeb4c (patch)
treee18b7664e4813f485a99bc3d9a0b15e6f4423b7a /hwpfilter
parentc4379aacbe9d5732dadf02c2d4306266e162ffc6 (diff)
loplugin:unusedmethods hwpfilter,i18npool
Change-Id: Ied85d93019d0f6c01c14045758b405f2ac316676 Reviewed-on: https://gerrit.libreoffice.org/16783 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/formula.h1
-rw-r--r--hwpfilter/source/hbox.cxx17
-rw-r--r--hwpfilter/source/hbox.h8
-rw-r--r--hwpfilter/source/hinfo.h2
-rw-r--r--hwpfilter/source/hpara.h11
-rw-r--r--hwpfilter/source/hwpfile.h2
-rw-r--r--hwpfilter/source/mzstring.h3
7 files changed, 0 insertions, 44 deletions
diff --git a/hwpfilter/source/formula.h b/hwpfilter/source/formula.h
index ebdb1acc3b84..22c53f6a4d6f 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 ddcd815d5e78..4ef9cbf203b8 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 7499bd2e0f99..4ceeb274b29c 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 00bc6046c9b4..0452f4250612 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 94bd3279ceb3..7a6c5e317e93 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 b28c2a440743..f044b5d053d9 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 b5d2656ddbe4..5a5d6068c7ce 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);