Kaydet (Commit) c3dc4672 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:constantfunction: hwpfilter

Change-Id: I2504291e2167cbc4be91e01de654ca63f89dbd2a
üst 1c347666
...@@ -165,7 +165,6 @@ void Formula::makeExpr(Node *res) ...@@ -165,7 +165,6 @@ void Formula::makeExpr(Node *res)
makeRoot(tmp); makeRoot(tmp);
break; break;
case ID_ARROWEXPR: case ID_ARROWEXPR:
makeArrow(tmp);
break; break;
case ID_ACCENTEXPR: case ID_ACCENTEXPR:
makeAccent(tmp); makeAccent(tmp);
...@@ -181,10 +180,8 @@ void Formula::makeExpr(Node *res) ...@@ -181,10 +180,8 @@ void Formula::makeExpr(Node *res)
makeBlock(tmp); makeBlock(tmp);
//fall-through //fall-through
case ID_BEGIN: case ID_BEGIN:
makeBegin(tmp);
//fall-through //fall-through
case ID_END: case ID_END:
makeEnd(tmp);
break; break;
} }
} }
...@@ -463,10 +460,6 @@ void Formula::makeRoot(Node *res) ...@@ -463,10 +460,6 @@ void Formula::makeRoot(Node *res)
rendEl("math:mroot"); rendEl("math:mroot");
#endif #endif
} }
// DVO: add space to avoid warning
void Formula::makeArrow(Node * /*res*/)
{
}
void Formula::makeAccent(Node *res) void Formula::makeAccent(Node *res)
{ {
makeDecoration( res ); makeDecoration( res );
...@@ -575,16 +568,6 @@ void Formula::makeBlock(Node *res) ...@@ -575,16 +568,6 @@ void Formula::makeBlock(Node *res)
#endif #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() int Formula::parse()
{ {
Node *res = 0L; Node *res = 0L;
......
...@@ -70,14 +70,11 @@ private: ...@@ -70,14 +70,11 @@ private:
void makeDecoration(Node *res); void makeDecoration(Node *res);
void makeFunction(Node *res); void makeFunction(Node *res);
void makeRoot(Node *res); void makeRoot(Node *res);
void makeArrow(Node *res);
void makeAccent(Node *res); void makeAccent(Node *res);
void makeParenth(Node *res); void makeParenth(Node *res);
void makeFence(Node *res); void makeFence(Node *res);
void makeBracket(Node *res); void makeBracket(Node *res);
void makeBlock(Node *res); void makeBlock(Node *res);
void makeBegin(Node *res);
void makeEnd(Node *res);
private: private:
Reference< XDocumentHandler > m_rxDocumentHandler; Reference< XDocumentHandler > m_rxDocumentHandler;
......
...@@ -3082,13 +3082,11 @@ void HwpReader::make_text_p3(HWPPara * para,bool bParaStart) ...@@ -3082,13 +3082,11 @@ void HwpReader::make_text_p3(HWPPara * para,bool bParaStart)
if( !pstart ) {STARTP;} if( !pstart ) {STARTP;}
if( !tstart ) {STARTT;} if( !tstart ) {STARTT;}
makeChars(str); makeChars(str);
makeTocMark(static_cast<TocMark *>(para->hhstr[n]));
break; break;
case CH_INDEX_MARK: // 26 case CH_INDEX_MARK: // 26
if( !pstart ) {STARTP;} if( !pstart ) {STARTP;}
if( !tstart ) {STARTT;} if( !tstart ) {STARTT;}
makeChars(str); makeChars(str);
makeIndexMark(static_cast<IndexMark *>(para->hhstr[n]));
break; break;
case CH_OUTLINE: // 28 case CH_OUTLINE: // 28
if( !pstart ) {STARTP;} if( !pstart ) {STARTP;}
...@@ -4749,24 +4747,6 @@ void HwpReader::makeMailMerge(MailMerge * hbox) ...@@ -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) void HwpReader::makeOutline(Outline * hbox)
{ {
if( hbox->kind == 1 ) if( hbox->kind == 1 )
......
...@@ -134,8 +134,6 @@ private: ...@@ -134,8 +134,6 @@ private:
void makeAutoNum(AutoNum *hbox); void makeAutoNum(AutoNum *hbox);
void makeShowPageNum(); void makeShowPageNum();
void makeMailMerge(MailMerge *hbox); void makeMailMerge(MailMerge *hbox);
void makeTocMark(TocMark *hbox);
void makeIndexMark(IndexMark *hbox);
void makeOutline(Outline *hbox); void makeOutline(Outline *hbox);
/* --------- Styles Parsing ------------ */ /* --------- Styles Parsing ------------ */
......
...@@ -84,8 +84,6 @@ public: ...@@ -84,8 +84,6 @@ public:
printf("Node count : [%d]\n",count); printf("Node count : [%d]\n",count);
#endif #endif
} }
void print(){
}
public: public:
static int count; /* For memory debugging */ static int count; /* For memory debugging */
int id; int id;
......
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