diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2012-10-05 20:33:57 -0300 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-10-09 21:34:49 +0000 |
commit | 24e66143ed0887bb28f359d3172735017434bdf8 (patch) | |
tree | 0ecab7bb6280994125545f67a0137d886e91baf5 /lotuswordpro/source/filter/lwpfrib.cxx | |
parent | 98a6d76f1eb20346828056b906bd775c8247e992 (diff) |
Remove useless code
These macros was never defined:
KANJI
AMIKAKE
BORDER_BMP
SMARTEXT
JAPANESE_ENABLED
BENUTIL_SUPPORT
So, these code inside these ifdefs was never executed. Remove all this.
Also in this commit, remove some odd comments and commented code.
Change-Id: Idd4991d06d1c879e64f07875241a8acfa35695d0
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/777
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro/source/filter/lwpfrib.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpfrib.cxx | 44 |
1 files changed, 1 insertions, 43 deletions
diff --git a/lotuswordpro/source/filter/lwpfrib.cxx b/lotuswordpro/source/filter/lwpfrib.cxx index f7b800de6b3b..d801d42ae038 100644 --- a/lotuswordpro/source/filter/lwpfrib.cxx +++ b/lotuswordpro/source/filter/lwpfrib.cxx @@ -169,36 +169,10 @@ LwpFrib* LwpFrib::CreateFrib(LwpPara* pPara, LwpObjectStream* pObjStrm, sal_uInt case FRIB_TAG_NOTE: newFrib = new LwpFribNote(pPara); break; -/* case FRIB_TAG_KANJI: - #ifdef KANJI - newFrib = new CFribHelperKanji; - #else - newFrib = new CFribHelperUnicode; - #endif - break; - case FRIB_TAG_HKATAKANA: - #ifdef KANJI - newFrib = new CFribHelperHKatakana; - #else - newFrib = new CFribHelperUnicode; - #endif - break; - case FRIB_TAG_SEPARATOR: - newFrib = new CFribHelperSeparator; - break;*/ case FRIB_TAG_SECTION: newFrib = new LwpFribSection(pPara); break; -/* case FRIB_TAG_TOMBSTONE: - newFrib = new CFribHelperTombstone; - break; - case FRIB_TAG_SPECIALTAB: - newFrib = new CFribHelperSpecialTab; - break; case FRIB_TAG_PAGENUMBER: - newFrib = new CFribHelperPageNumber; - break; -*/ case FRIB_TAG_PAGENUMBER: newFrib = new LwpFribPageNumber(pPara); break; case FRIB_TAG_DOCVAR: @@ -207,30 +181,18 @@ LwpFrib* LwpFrib::CreateFrib(LwpPara* pPara, LwpObjectStream* pObjStrm, sal_uInt case FRIB_TAG_BOOKMARK: newFrib = new LwpFribBookMark(pPara); break; -/* case FRIB_TAG_DOCVAR: - newFrib = new CFribHelperBookmark; - break; - case FRIB_TAG_DDE: - newFrib = new CFribHelperDDE; - break; -*/ case FRIB_TAG_FIELD: + case FRIB_TAG_FIELD: newFrib = new LwpFribField(pPara); break; case FRIB_TAG_CHBLOCK: newFrib = new LwpFribCHBlock(pPara); break; -/* case FRIB_TAG_FLOWBREAK: - newFrib = new CFribHelperFlowBreak; - break; -#ifdef RUBY*/ case FRIB_TAG_RUBYMARKER: newFrib = new LwpFribRubyMarker(pPara); break; case FRIB_TAG_RUBYFRAME: newFrib = new LwpFribRubyFrame(pPara); break; -/*#endif -*/ } //Do not know why the fribTag judgement is necessary, to be checked with @@ -400,10 +362,6 @@ void LwpFrib::ReadModifiers(LwpObjectStream* pObjStrm,ModifierInfo* pModInfo) } } -//do nothing -//void LwpFrib::Parse(IXFStream* pOutputStream) -//{} - /** * @descr: Whether there are other fribs following current frib. * @return: Ture if having following fribs, or false. |