summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-06 20:38:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-10-07 19:43:39 +0200
commit4b713fb40833ace1543d3645d429fe9a202dbfc8 (patch)
treea249bf005bb3cdbaaebfd8a2a0f5cf0a9cfa9ee3
parent8b119b972b37a7e497091167bb6944a1c167f9bb (diff)
unused Dialog field in FuPoor
Change-Id: Ic8ff613f7de37476054874f60bc83666d4cf404c Reviewed-on: https://gerrit.libreoffice.org/61479 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sd/source/ui/func/fupoor.cxx12
-rw-r--r--sd/source/ui/inc/fupoor.hxx3
2 files changed, 0 insertions, 15 deletions
diff --git a/sd/source/ui/func/fupoor.cxx b/sd/source/ui/func/fupoor.cxx
index 2e939b91d11b..078bdb610c5a 100644
--- a/sd/source/ui/func/fupoor.cxx
+++ b/sd/source/ui/func/fupoor.cxx
@@ -29,7 +29,6 @@
#include <sfx2/dispatch.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/request.hxx>
-#include <vcl/dialog.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/drawing/XLayer.hpp>
#include <com/sun/star/drawing/XLayerManager.hpp>
@@ -72,7 +71,6 @@ FuPoor::FuPoor (
mpDocSh( pDrDoc->GetDocSh() ),
mpDoc(pDrDoc),
nSlotId( rReq.GetSlot() ),
- pDialog(nullptr),
bIsInDragMode(false),
bNoScrollUntilInside (true),
bScrollable (false),
@@ -98,15 +96,10 @@ FuPoor::~FuPoor()
aDragTimer.Stop();
aScrollTimer.Stop();
aDelayToScrollTimer.Stop();
- pDialog.disposeAndClear();
}
void FuPoor::Activate()
{
- if (pDialog)
- {
- pDialog->Show();
- }
}
void FuPoor::Deactivate()
@@ -116,11 +109,6 @@ void FuPoor::Deactivate()
aDelayToScrollTimer.Stop ();
bScrollable = bDelayActive = false;
- if (pDialog)
- {
- pDialog->Hide();
- }
-
if (mpWindow && mpWindow->IsMouseCaptured())
mpWindow->ReleaseMouse();
}
diff --git a/sd/source/ui/inc/fupoor.hxx b/sd/source/ui/inc/fupoor.hxx
index 4f003c045709..ca77a62a83f3 100644
--- a/sd/source/ui/inc/fupoor.hxx
+++ b/sd/source/ui/inc/fupoor.hxx
@@ -29,7 +29,6 @@
class SdDrawDocument;
class SfxRequest;
-class Dialog;
class SdrObject;
class CommandEvent;
class HelpEvent;
@@ -152,8 +151,6 @@ protected:
sal_uInt16 nSlotId;
- VclPtr<Dialog> pDialog;
-
Timer aScrollTimer; ///< for auto-scrolling
DECL_LINK( ScrollHdl, Timer *, void );
void ForceScroll(const Point& aPixPos);