Kaydet (Commit) 3cbbdedd authored tarafından Takeshi Abe's avatar Takeshi Abe

removed dead code

üst 6e8fb811
......@@ -83,7 +83,6 @@ namespace nsRedlineType_t
// When larger than 128, flags can be inserted.
const RedlineType_t REDLINE_NO_FLAG_MASK = 0x7F;
//const RedlineType_t REDLINE_FLAG_MASK = 0xFF80;
const RedlineType_t REDLINE_FORM_AUTOFMT = 0x80;// Can be a flag in RedlineType.
}
......
......@@ -1860,7 +1860,6 @@ uno::Any SwDoc::Spell( SwPaM& rPaM,
uno::Reference< beans::XPropertySet > xProp( ::GetLinguPropertySet() );
SwSpellArgs *pSpellArgs = 0;
//SwConversionArgs *pConvArgs = 0;
if (pConvArgs)
{
pConvArgs->SetStart(pSttPos->nNode.GetNode().GetTxtNode(), pSttPos->nContent);
......
......@@ -50,8 +50,6 @@
#include <unobaseclass.hxx>
#include <limits>
#include <limits>
using namespace ::com::sun::star;
......
......@@ -289,7 +289,6 @@ void SwUndo::RepeatImpl( ::sw::RepeatContext & )
bool SwUndo::CanRepeatImpl( ::sw::RepeatContext & ) const
{
// return false;
return ((REPEAT_START <= GetId()) && (GetId() < REPEAT_END));
}
......
......@@ -498,13 +498,6 @@ void SwUndoCompDoc::RedoImpl(::sw::UndoRedoContext & rContext)
SwRedline* pTmp = new SwRedline( *pRedlData, *pPam );
((SwRedlineTbl&)pDoc->GetRedlineTbl()).Insert( pTmp );
pTmp->InvalidateRange();
/*
SwRedlineMode eOld = pDoc->GetRedlineMode();
pDoc->SetRedlineMode_intern( eOld & ~REDLINE_IGNORE );
pDoc->AppendRedline( new SwRedline( *pRedlData, *pPam ));
pDoc->SetRedlineMode_intern( eOld );
*/
}
else if( !( nsRedlineMode_t::REDLINE_IGNORE & GetRedlineMode() ) &&
pDoc->GetRedlineTbl().Count() )
......@@ -512,9 +505,6 @@ void SwUndoCompDoc::RedoImpl(::sw::UndoRedoContext & rContext)
}
else
{
// SwRedlineMode eOld = pDoc->GetRedlineMode();
// pDoc->SetRedlineMode_intern( ( eOld & ~REDLINE_IGNORE) | REDLINE_ON );
if( pUnDel2 )
{
pUnDel2->UndoImpl(rContext);
......@@ -529,8 +519,6 @@ void SwUndoCompDoc::RedoImpl(::sw::UndoRedoContext & rContext)
((SwRedlineTbl&)pDoc->GetRedlineTbl()).Insert( pTmp );
if (pTmp) // #i19649#
pTmp->InvalidateRange();
// pDoc->SetRedlineMode_intern( eOld );
}
SetPaM(*pPam, true);
......
......@@ -256,10 +256,6 @@ int SwView::InsertGraphic( const String &rPath, const String &rFilter,
sal_Bool SwView::InsertGraphicDlg( SfxRequest& rReq )
{
#ifndef ENABLE_PROP_WITHOUTLINK
#define ENABLE_PROP_WITHOUTLINK 0x08
#endif
sal_Bool bReturn = sal_False;
SwDocShell* pDocShell = GetDocShell();
sal_uInt16 nHtmlMode = ::GetHtmlMode(pDocShell);
......
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