diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-02-08 11:00:21 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-02-08 11:00:40 +0100 |
commit | b7e8306c09d926ad26bbcfd3ea331fff738d0f98 (patch) | |
tree | 504d4dbfc624428bb06d6bfd959847bb3d9daf96 | |
parent | c64ea526dc71da6e3aad188ac71e58047ed74b5a (diff) |
svx: SdrModel::mbTiledRendering is never read
Change-Id: I8571032b5c43a47872cb3364613ffb936624aa2d
-rw-r--r-- | include/svx/svdmodel.hxx | 4 | ||||
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 1 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdmodel.cxx | 6 | ||||
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 2 |
5 files changed, 0 insertions, 15 deletions
diff --git a/include/svx/svdmodel.hxx b/include/svx/svdmodel.hxx index 4288fac9f748..1759527d942e 100644 --- a/include/svx/svdmodel.hxx +++ b/include/svx/svdmodel.hxx @@ -174,8 +174,6 @@ protected: SdrOutliner* pChainingOutliner; // an Outliner for chaining overflowing text sal_uIntPtr nDefTextHgt; // Default text height in logical units VclPtr<OutputDevice> pRefOutDev; // ReferenceDevice for the EditEngine - /// Set if we are doing tiled rendering. - bool mbTiledRendering; LibreOfficeKitCallback mpLibreOfficeKitCallback; void* mpLibreOfficeKitData; /// Set if we are in the middle of a tiled search. @@ -337,8 +335,6 @@ public: // ReferenceDevice for the EditEngine void SetRefDevice(OutputDevice* pDev); OutputDevice* GetRefDevice() const { return pRefOutDev.get(); } - /// Set if we are doing tiled rendering. - void setTiledRendering(bool bTiledRendering); /// The actual implementation of the vcl::ITiledRenderable::registerCallback() API. void registerLibreOfficeKitCallback(LibreOfficeKitCallback pCallback, void* pLibreOfficeKitData); /// Gets the LOK callback registered by registerLibreOfficeKitCallback(). diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 8806a88579c5..7620b632f053 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -924,7 +924,6 @@ Pointer ScModelObj::getPointer() void ScModelObj::initializeForTiledRendering(const css::uno::Sequence<css::beans::PropertyValue>& /*rArguments*/) { SolarMutexGuard aGuard; - pDocShell->GetDocument().GetDrawLayer()->setTiledRendering(true); // show us the text exactly ScInputOptions aInputOptions(SC_MOD()->GetInputOptions()); diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index cf0a32ce2038..bca78851a354 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -2368,8 +2368,6 @@ void SdXImpressDocument::initializeForTiledRendering(const css::uno::Sequence<cs // tiled rendering works only when we are in the 'Normal' view, switch to that mpDocShell->GetViewShell()->GetViewFrame()->GetDispatcher()->Execute(SID_VIEWSHELL0, SfxCallMode::SYNCHRON | SfxCallMode::RECORD); - mpDoc->setTiledRendering(true); - if (DrawViewShell* pViewShell = GetViewShell()) { DrawView* pDrawView = pViewShell->GetDrawView(); diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx index f17a4ff0c723..d992ab27a368 100644 --- a/svx/source/svdraw/svdmodel.cxx +++ b/svx/source/svdraw/svdmodel.cxx @@ -126,7 +126,6 @@ void SdrModel::ImpCtor(SfxItemPool* pPool, ::comphelper::IEmbeddedHelper* _pEmbe pDrawOutliner=nullptr; pHitTestOutliner=nullptr; pRefOutDev=nullptr; - mbTiledRendering = false; mpLibreOfficeKitCallback = nullptr; mpLibreOfficeKitData = nullptr; mbTiledSearching = false; @@ -812,11 +811,6 @@ void SdrModel::SetRefDevice(OutputDevice* pDev) RefDeviceChanged(); } -void SdrModel::setTiledRendering(bool bTiledRendering) -{ - mbTiledRendering = bTiledRendering; -} - void SdrModel::registerLibreOfficeKitCallback(LibreOfficeKitCallback pCallback, void* pData) { mpLibreOfficeKitCallback = pCallback; diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index a6e4719fd477..aedf88ce7695 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3232,8 +3232,6 @@ void SwXTextDocument::initializeForTiledRendering(const css::uno::Sequence<css:: { SolarMutexGuard aGuard; - // Call setTiledRendering() first, so that when we change the view layout, - // we already don't center the pages. SwDoc* pDoc = pDocShell->GetDoc(); SwViewShell* pViewShell = pDoc->getIDocumentLayoutAccess().GetCurrentViewShell(); |