summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-11-25 15:04:13 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-11-25 15:45:58 +0000
commit378f500bf64e96a92132fe5f965a6503db416183 (patch)
tree946052ff7fe0b177a31f0bfbadda6562f9692f0c /sd
parentf4ac785494ac056535d2ff12ac59b909dafa4bab (diff)
coverity#1340222 Logically dead code
This is (worrying) fall-out from commit 229fc164dc1773484b74eca016863cf68860e81b Author: Philippe Jung <phil.jung@free.fr> Date: Fri Jul 10 17:02:44 2015 +0200 Impress: Rework the way the display modes are presented. Change-Id: I00d19b2d3cec4d505d17ba4031f6763c86395f74
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/drviewse.cxx18
1 files changed, 0 insertions, 18 deletions
diff --git a/sd/source/ui/view/drviewse.cxx b/sd/source/ui/view/drviewse.cxx
index a293696455b6..4aa451078449 100644
--- a/sd/source/ui/view/drviewse.cxx
+++ b/sd/source/ui/view/drviewse.cxx
@@ -999,24 +999,6 @@ void DrawViewShell::FuSupport(SfxRequest& rReq)
Broadcast (
ViewShellHint(ViewShellHint::HINT_CHANGE_EDIT_MODE_START));
- // Is there a page with the AutoLayout "Title"?
- bool bFound = false;
- sal_uInt16 i = 0;
- sal_uInt16 nCount = GetDoc()->GetSdPageCount(PK_STANDARD);
-
- while (i < nCount && !bFound)
- {
- SdPage* pPage = GetDoc()->GetSdPage(i, PK_STANDARD);
-
- if (nSId == SID_SLIDE_MASTER_MODE && pPage->GetAutoLayout() != AUTOLAYOUT_TITLE)
- {
- bFound = true;
- SwitchPage((pPage->GetPageNum() - 1) / 2);
- }
-
- i++;
- }
-
// turn on default layer of MasterPage
mpDrawView->SetActiveLayer( SD_RESSTR(STR_LAYER_BCKGRNDOBJ) );