diff options
author | Philipp Riemer <ruderphilipp@gmail.com> | 2012-08-25 02:21:38 +0200 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-08-25 01:12:39 +0000 |
commit | 9d6eedf05b550ca3d6f98dc9f77c06a3594165c4 (patch) | |
tree | dd6cfd87b0eadbd8abb88a9dfea90b1bc5f0d49e /sc | |
parent | remove ascii-art and blank lines in sc/source/ui/undo (diff) | |
download | core-9d6eedf05b550ca3d6f98dc9f77c06a3594165c4.tar.gz core-9d6eedf05b550ca3d6f98dc9f77c06a3594165c4.zip |
removed commented out code in sc/source/ui/undo
This is a follow-up patch of 06f611210cf487dcd32aa7ccfaae5ed80124e439.
Since the rebasing process is not finished yet, I submit it to
Gerrit, so that the changes are available for later when they can
be applied again to the related files.
Change-Id: I047ade3f9a6b3927ddab8b94a53113b17483c06f
Reviewed-on: https://gerrit.libreoffice.org/486
Reviewed-by: Kohei Yoshida <kohei.yoshida@gmail.com>
Tested-by: Kohei Yoshida <kohei.yoshida@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/undo/undoblk.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/undo/undoblk3.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/undo/undodat.cxx | 9 | ||||
-rw-r--r-- | sc/source/ui/undo/undotab.cxx | 2 |
4 files changed, 1 insertions, 15 deletions
diff --git a/sc/source/ui/undo/undoblk.cxx b/sc/source/ui/undo/undoblk.cxx index 83459c5ffe65..96a8bee02f70 100644 --- a/sc/source/ui/undo/undoblk.cxx +++ b/sc/source/ui/undo/undoblk.cxx @@ -1691,7 +1691,6 @@ void ScUndoEnterMatrix::Redo() pDoc->InsertMatrixFormula( aBlockRange.aStart.Col(), aBlockRange.aStart.Row(), aBlockRange.aEnd.Col(), aBlockRange.aEnd.Row(), aDestMark, aFormula ); -// pDocShell->PostPaint( aBlockRange, PAINT_GRID ); // not needed ??? SetChangeTrack(); diff --git a/sc/source/ui/undo/undoblk3.cxx b/sc/source/ui/undo/undoblk3.cxx index a8895efaf89a..339b6910dda4 100644 --- a/sc/source/ui/undo/undoblk3.cxx +++ b/sc/source/ui/undo/undoblk3.cxx @@ -790,10 +790,6 @@ void ScUndoAutoFormat::Undo() ScDocument* pDoc = pDocShell->GetDocument(); - // Attribute -// pDoc->DeleteAreaTab( aBlockRange, IDF_ATTRIB ); -// pUndoDoc->CopyToDocument( aBlockRange, IDF_ATTRIB, sal_False, pDoc ); - SCTAB nTabCount = pDoc->GetTableCount(); pDoc->DeleteArea( aBlockRange.aStart.Col(), aBlockRange.aStart.Row(), aBlockRange.aEnd.Col(), aBlockRange.aEnd.Row(), diff --git a/sc/source/ui/undo/undodat.cxx b/sc/source/ui/undo/undodat.cxx index fd5f56e13d24..ef2bf7a5ea98 100644 --- a/sc/source/ui/undo/undodat.cxx +++ b/sc/source/ui/undo/undodat.cxx @@ -1285,9 +1285,6 @@ void ScUndoImportData::Undo() ScUndoUtil::MarkSimpleBlock( pDocShell, nCol1, nRow1, nTable, nCol2, nRow2, nTable ); } -// erack! it's broadcasted -// pDoc->SetDirty(); - SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo(); if ( nVisTab != nTab ) pViewShell->SetTabNo( nTab ); @@ -1357,9 +1354,6 @@ void ScUndoImportData::Redo() ScUndoUtil::MarkSimpleBlock( pDocShell, nCol1, nRow1, nTable, nCol2, nRow2, nTable ); } -// erack! it's broadcasted -// pDoc->SetDirty(); - SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo(); if ( nVisTab != nTab ) pViewShell->SetTabNo( nTab ); @@ -1522,9 +1516,6 @@ void ScUndoRepeatDB::Undo() if (pUndoDB) pDoc->SetDBCollection( new ScDBCollection( *pUndoDB ), sal_True ); -// erack! it's broadcasted -// pDoc->SetDirty(); - SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo(); if ( nVisTab != nTab ) pViewShell->SetTabNo( nTab ); diff --git a/sc/source/ui/undo/undotab.cxx b/sc/source/ui/undo/undotab.cxx index 65691391d69b..4818818738e6 100644 --- a/sc/source/ui/undo/undotab.cxx +++ b/sc/source/ui/undo/undotab.cxx @@ -273,7 +273,7 @@ sal_Bool ScUndoInsertTables::CanRepeat(SfxRepeatTarget& rTarget) const return (rTarget.ISA(ScTabViewTarget)); } -ScUndoDeleteTab::ScUndoDeleteTab( ScDocShell* pNewDocShell, const vector<SCTAB> &aTab, //SCTAB nNewTab, +ScUndoDeleteTab::ScUndoDeleteTab( ScDocShell* pNewDocShell, const vector<SCTAB> &aTab, ScDocument* pUndoDocument, ScRefUndoData* pRefData ) : ScMoveUndo( pNewDocShell, pUndoDocument, pRefData, SC_UNDO_REFLAST ) { |