summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-02 13:23:40 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-02 22:07:35 +0200
commit14a3111e6db99200439b55b558ee15fd8fb617f6 (patch)
treed80c577b4867f26dc226f4f149f3d0d5e78e573d /sd/source
parentc5452dcc426b3c9de43defa855fd5139c2c78de5 (diff)
SelectionFunction::ModeHandler::StartDrag parameter eMode is unused
...ever since 8c9901906bbc6b59baa0b2ef918b7e7fe89538b8 "renaissance1: #i107215# Reorganized the selection function. Introduced button bar." Change-Id: I54ebea0f74d83fe4f4455a3b666bbb9737764b49
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx13
1 files changed, 3 insertions, 10 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
index ebfaef7526de..565eac564e18 100644
--- a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
@@ -165,8 +165,7 @@ public:
void SwitchView (const model::SharedPageDescriptor& rpDescriptor);
void StartDrag (
- const Point& rMousePosition,
- const InsertionIndicatorHandler::Mode eMode);
+ const Point& rMousePosition);
bool IsMouseOverIndicatorAllowed() const { return mbIsMouseOverIndicatorAllowed;}
@@ -990,10 +989,8 @@ void SelectionFunction::ModeHandler::SwitchView (const model::SharedPageDescript
}
void SelectionFunction::ModeHandler::StartDrag (
- const Point& rMousePosition,
- const InsertionIndicatorHandler::Mode eMode)
+ const Point& rMousePosition)
{
- (void)eMode;
// Do not start a drag-and-drop operation when one is already active.
// (when dragging pages from one document into another, pressing a
// modifier key can trigger a MouseMotion event in the originating
@@ -1168,11 +1165,7 @@ bool NormalModeHandler::ProcessMotionEvent (
std::abs(maButtonDownLocation->Y() - rDescriptor.maMousePosition.Y()))
: 0);
if (nDistance > 3)
- StartDrag(
- rDescriptor.maMousePosition,
- (rDescriptor.mnEventCode & CONTROL_MODIFIER) != 0
- ? InsertionIndicatorHandler::CopyMode
- : InsertionIndicatorHandler::MoveMode);
+ StartDrag(rDescriptor.maMousePosition);
}
break;
}