summaryrefslogtreecommitdiffstats
path: root/sc/source/ui/undo
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-21 11:49:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-25 14:19:10 +0200
commit2c3cac855cf65a75d7e73e4cba10b757d5ab1940 (patch)
treefda2f91478ee9ded8ad21e4b6ea5d57f87cad414 /sc/source/ui/undo
parentResolves: rhbz#1372630 update recently used color with direct button click (diff)
downloadcore-2c3cac855cf65a75d7e73e4cba10b757d5ab1940.tar.gz
core-2c3cac855cf65a75d7e73e4cba10b757d5ab1940.zip
loplugin:unusedfields in sc
The *chart* fields in ScTabViewShell in sc/source/ui/inc/tabvwsh.hxx are unused since: commit 5021f298418f6efa7bb7b6540113b712599778fe Author: Marcos Paulo de Souza <marcos.souza.org@gmail.com> Date: Mon Jul 28 12:11:08 2014 -0300 Remove some unused code The bEveryoneButMe field in ScChangeViewSettings is unused since commit 90e8ad7ab779740c7381d26ffe7d08acc3a9ff96 Author: Noel Grandin <noel@peralex.com> Date: Tue Jul 21 15:39:17 2015 +0200 loplugin:unusedmethods scripting,sc Change-Id: Ie9fbdf8f5e9177449316aaeb40ca3bd26df78a95 Reviewed-on: https://gerrit.libreoffice.org/40264 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/undo')
-rw-r--r--sc/source/ui/undo/undobase.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/sc/source/ui/undo/undobase.cxx b/sc/source/ui/undo/undobase.cxx
index 71b8751f396d..e5b598d6f5f4 100644
--- a/sc/source/ui/undo/undobase.cxx
+++ b/sc/source/ui/undo/undobase.cxx
@@ -348,8 +348,7 @@ void ScBlockUndo::ShowBlock()
ScMultiBlockUndo::ScMultiBlockUndo(
ScDocShell* pDocSh, const ScRangeList& rRanges) :
ScSimpleUndo(pDocSh),
- maBlockRanges(rRanges),
- meMode(SC_UNDO_SIMPLE)
+ maBlockRanges(rRanges)
{
mpDrawUndo = GetSdrUndoAction( &pDocShell->GetDocument() );
}
@@ -367,9 +366,6 @@ void ScMultiBlockUndo::BeginUndo()
void ScMultiBlockUndo::EndUndo()
{
- if (meMode == SC_UNDO_AUTOHEIGHT)
- AdjustHeight();
-
EnableDrawAdjust(&pDocShell->GetDocument(), true);
DoSdrUndoAction(mpDrawUndo, &pDocShell->GetDocument());
@@ -379,9 +375,6 @@ void ScMultiBlockUndo::EndUndo()
void ScMultiBlockUndo::EndRedo()
{
- if (meMode == SC_UNDO_AUTOHEIGHT)
- AdjustHeight();
-
ShowBlock();
ScSimpleUndo::EndRedo();
}