From 199d83a44d07eeed1ffb27ad2a2f3ba5e40a0491 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Wed, 28 Sep 2011 13:47:45 +0900 Subject: removed dead code --- sw/source/core/attr/cellatr.cxx | 2 -- sw/source/ui/config/caption.cxx | 4 ---- sw/source/ui/lingu/hyp.cxx | 4 ---- sw/source/ui/shells/textsh1.cxx | 22 ---------------------- 4 files changed, 32 deletions(-) diff --git a/sw/source/core/attr/cellatr.cxx b/sw/source/core/attr/cellatr.cxx index abd2dfd887d1..d2b566df142e 100644 --- a/sw/source/core/attr/cellatr.cxx +++ b/sw/source/core/attr/cellatr.cxx @@ -43,8 +43,6 @@ #include -//TYPEINIT1( SwFmt, SwClient ); //rtti fuer SwFmt - /************************************************************************* |* *************************************************************************/ diff --git a/sw/source/ui/config/caption.cxx b/sw/source/ui/config/caption.cxx index 405a97694250..e24262fdaab0 100644 --- a/sw/source/ui/config/caption.cxx +++ b/sw/source/ui/config/caption.cxx @@ -29,15 +29,11 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_sw.hxx" - #include #include "numrule.hxx" #include "caption.hxx" -#define VERSION_01 1 -#define CAPTION_VERSION VERSION_01 - InsCaptionOpt::InsCaptionOpt(const SwCapObjType eType, const SvGlobalName* pOleId) : bUseCaption(sal_False), eObjType(eType), diff --git a/sw/source/ui/lingu/hyp.cxx b/sw/source/ui/lingu/hyp.cxx index 27955070a6c0..26c02766b5cb 100644 --- a/sw/source/ui/lingu/hyp.cxx +++ b/sw/source/ui/lingu/hyp.cxx @@ -29,8 +29,6 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_sw.hxx" - - #include "initui.hxx" #include "view.hxx" #include "edtwin.hxx" @@ -42,14 +40,12 @@ #include #include - #include "hyp.hxx" #include "mdiexp.hxx" #include "olmenu.hrc" #include -#define HYPHHERE '-' #define PSH (&pView->GetWrtShell()) using namespace ::com::sun::star; diff --git a/sw/source/ui/shells/textsh1.cxx b/sw/source/ui/shells/textsh1.cxx index 7ccc72d59c13..55a268eba57a 100644 --- a/sw/source/ui/shells/textsh1.cxx +++ b/sw/source/ui/shells/textsh1.cxx @@ -1480,29 +1480,7 @@ void SwTextShell::GetState( SfxItemSet &rSet ) case FN_INSERT_PAGEHEADER: case FN_INSERT_PAGEFOOTER: { -#ifndef CHECK_MENU rSet.Put( SfxObjectShellItem( nWhich, GetView().GetDocShell() )); -#else - // Seitenvorlagen besorgen - sal_Bool bFound = sal_False; - sal_uInt16 n, nCnt = rSh.GetPageDescCnt(); - for( n = 0; n < nCnt; ++n ) - { - const SwPageDesc& rDesc = rSh.GetPageDesc( n ); - if( FN_INSERT_PAGEHEADER == nWhich - ? !rDesc.GetMaster().GetHeader().IsActive() - : !rDesc.GetMaster().GetFooter().IsActive() ) - { - bFound = sal_True; - break; - } - } - - if( bFound ) - rSet.Put( SfxObjectShellItem( nWhich, GetView().GetDocShell() )); - else - rSet.DisableItem( nWhich ); -#endif } break; case FN_TABLE_SORT_DIALOG: -- cgit