summaryrefslogtreecommitdiff
path: root/include/vcl/toolkit
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-07-03 10:03:43 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2024-07-04 06:31:51 +0200
commitfed3e5d4ea03d12d17dd380359689e4f00c7f90e (patch)
treeef9f40262d1353ae1bdb982d8dda23909e2c5189 /include/vcl/toolkit
parented3c987a60dddcf3a75a15cbb5251d57a9bccdb7 (diff)
tdf#161853 Drop SvxIconViewFlags::POS_LOCKED
The flag is never set, so there's no need to check or clear it either. The only method setting it (`SvxIconChoiceCtrl_Impl::LockEntryPos`) was dropped in commit 18d18c8a5646868a8229dea9ffe3f46888c2bad5 Author: Joseph Powers <jpowers27@cox.net> Date: Sat Jul 23 07:16:14 2011 -0700 unusedcode.easy: svxIconChoiceCtrl_Impl Doing List cleanup, I ran into SaveSelection() and decided to delete it. While I was in the class, I went ahead and cleanup them all up. , but that method was already unused by then. Drop the flag and related code. Change-Id: I9b886f3a63444d502ef8c488437889a2b05e065a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169909 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'include/vcl/toolkit')
-rw-r--r--include/vcl/toolkit/ivctrl.hxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/vcl/toolkit/ivctrl.hxx b/include/vcl/toolkit/ivctrl.hxx
index 8e5e9abf1a3c..1442904fa2f8 100644
--- a/include/vcl/toolkit/ivctrl.hxx
+++ b/include/vcl/toolkit/ivctrl.hxx
@@ -37,10 +37,9 @@ class SvxIconChoiceCtrl_Impl;
enum class SvxIconViewFlags
{
NONE = 0x0000,
- POS_LOCKED = 0x0001,
- SELECTED = 0x0002,
- FOCUSED = 0x0004,
- POS_MOVED = 0x0008, // Moved by Drag and Drop, but not logged
+ SELECTED = 0x0001,
+ FOCUSED = 0x0002,
+ POS_MOVED = 0x0004, // Moved by Drag and Drop, but not logged
};
namespace o3tl
{
@@ -122,7 +121,6 @@ public:
SvxIconViewFlags GetFlags() const { return nFlags; }
bool IsSelected() const { return bool(nFlags & SvxIconViewFlags::SELECTED); }
bool IsFocused() const { return bool(nFlags & SvxIconViewFlags::FOCUSED); }
- bool IsPosLocked() const { return bool(nFlags & SvxIconViewFlags::POS_LOCKED); }
};