summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-24 09:58:09 +0200
committerNoel Grandin <noel@peralex.com>2015-03-24 10:31:18 +0200
commitc3dc46723234c3fd5101a26ff374e59140997582 (patch)
tree01a89aef6291a638e7e18c210bc45f223b8ff96a
parent1c34766698b03d14376ae7759ab1ad69f56786f9 (diff)
loplugin:constantfunction: hwpfilter
Change-Id: I2504291e2167cbc4be91e01de654ca63f89dbd2a
-rw-r--r--hwpfilter/source/formula.cxx17
-rw-r--r--hwpfilter/source/formula.h3
-rw-r--r--hwpfilter/source/hwpreader.cxx20
-rw-r--r--hwpfilter/source/hwpreader.hxx2
-rw-r--r--hwpfilter/source/nodes.h2
5 files changed, 0 insertions, 44 deletions
diff --git a/hwpfilter/source/formula.cxx b/hwpfilter/source/formula.cxx
index c29cbee12475..0729396a8fb1 100644
--- a/hwpfilter/source/formula.cxx
+++ b/hwpfilter/source/formula.cxx
@@ -165,7 +165,6 @@ void Formula::makeExpr(Node *res)
makeRoot(tmp);
break;
case ID_ARROWEXPR:
- makeArrow(tmp);
break;
case ID_ACCENTEXPR:
makeAccent(tmp);
@@ -181,10 +180,8 @@ void Formula::makeExpr(Node *res)
makeBlock(tmp);
//fall-through
case ID_BEGIN:
- makeBegin(tmp);
//fall-through
case ID_END:
- makeEnd(tmp);
break;
}
}
@@ -463,10 +460,6 @@ void Formula::makeRoot(Node *res)
rendEl("math:mroot");
#endif
}
-// DVO: add space to avoid warning
-void Formula::makeArrow(Node * /*res*/)
-{
-}
void Formula::makeAccent(Node *res)
{
makeDecoration( res );
@@ -575,16 +568,6 @@ void Formula::makeBlock(Node *res)
#endif
}
-// DVO: add space to avoid warning
-void Formula::makeBegin(Node * /*res*/)
-{
-}
-
-// DVO: add space to avoid warning
-void Formula::makeEnd(Node * /*res*/)
-{
-}
-
int Formula::parse()
{
Node *res = 0L;
diff --git a/hwpfilter/source/formula.h b/hwpfilter/source/formula.h
index e208522eb979..d0d4f9805c4e 100644
--- a/hwpfilter/source/formula.h
+++ b/hwpfilter/source/formula.h
@@ -70,14 +70,11 @@ private:
void makeDecoration(Node *res);
void makeFunction(Node *res);
void makeRoot(Node *res);
- void makeArrow(Node *res);
void makeAccent(Node *res);
void makeParenth(Node *res);
void makeFence(Node *res);
void makeBracket(Node *res);
void makeBlock(Node *res);
- void makeBegin(Node *res);
- void makeEnd(Node *res);
private:
Reference< XDocumentHandler > m_rxDocumentHandler;
diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx
index c40110ea35f7..93f99686c3d3 100644
--- a/hwpfilter/source/hwpreader.cxx
+++ b/hwpfilter/source/hwpreader.cxx
@@ -3082,13 +3082,11 @@ void HwpReader::make_text_p3(HWPPara * para,bool bParaStart)
if( !pstart ) {STARTP;}
if( !tstart ) {STARTT;}
makeChars(str);
- makeTocMark(static_cast<TocMark *>(para->hhstr[n]));
break;
case CH_INDEX_MARK: // 26
if( !pstart ) {STARTP;}
if( !tstart ) {STARTT;}
makeChars(str);
- makeIndexMark(static_cast<IndexMark *>(para->hhstr[n]));
break;
case CH_OUTLINE: // 28
if( !pstart ) {STARTP;}
@@ -4749,24 +4747,6 @@ void HwpReader::makeMailMerge(MailMerge * hbox)
}
-/**
- * Make heading contents file using toc marks
- * not support operation.
- */
-void HwpReader::makeTocMark(TocMark * ) /*hbox */
-{
-}
-
-
-/**
- * Make search character table in automatic
- * not support operation
- */
-void HwpReader::makeIndexMark(IndexMark * ) /*hbox */
-{
-}
-
-
void HwpReader::makeOutline(Outline * hbox)
{
if( hbox->kind == 1 )
diff --git a/hwpfilter/source/hwpreader.hxx b/hwpfilter/source/hwpreader.hxx
index e2564e27c185..348392015a46 100644
--- a/hwpfilter/source/hwpreader.hxx
+++ b/hwpfilter/source/hwpreader.hxx
@@ -134,8 +134,6 @@ private:
void makeAutoNum(AutoNum *hbox);
void makeShowPageNum();
void makeMailMerge(MailMerge *hbox);
- void makeTocMark(TocMark *hbox);
- void makeIndexMark(IndexMark *hbox);
void makeOutline(Outline *hbox);
/* --------- Styles Parsing ------------ */
diff --git a/hwpfilter/source/nodes.h b/hwpfilter/source/nodes.h
index 3c292ad62d8e..fd0c658c86d8 100644
--- a/hwpfilter/source/nodes.h
+++ b/hwpfilter/source/nodes.h
@@ -84,8 +84,6 @@ public:
printf("Node count : [%d]\n",count);
#endif
}
- void print(){
- }
public:
static int count; /* For memory debugging */
int id;