diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2018-11-17 14:54:23 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-11-17 17:45:51 +0100 |
commit | 5197e6582e0658112013bd81b905b24e5c00b5ad (patch) | |
tree | 61de0ab95086595d9411c28fe9cbefe0f6d22d88 | |
parent | c89a4996b82881988eb9cc1eeaf24e0d8f9e6dce (diff) |
remove unused IS_TRAVELSELECT
Change-Id: I2651b28ec52a001b67cdb3b2d88e8bca0eeb7790
Reviewed-on: https://gerrit.libreoffice.org/63493
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | compilerplugins/clang/unusedenumconstants.writeonly.results | 2 | ||||
-rw-r--r-- | include/vcl/treelistbox.hxx | 7 | ||||
-rw-r--r-- | vcl/source/treelist/treelistbox.cxx | 4 |
3 files changed, 3 insertions, 10 deletions
diff --git a/compilerplugins/clang/unusedenumconstants.writeonly.results b/compilerplugins/clang/unusedenumconstants.writeonly.results index 6ba7ebb40d81..2efcd5310136 100644 --- a/compilerplugins/clang/unusedenumconstants.writeonly.results +++ b/compilerplugins/clang/unusedenumconstants.writeonly.results @@ -2726,8 +2726,6 @@ include/svtools/treelistbox.hxx:191 enum SvTreeListBoxFlags IN_EDT include/svtools/treelistbox.hxx:192 enum SvTreeListBoxFlags EDT_ENABLED -include/svtools/treelistbox.hxx:194 - enum SvTreeListBoxFlags IS_TRAVELSELECT include/svtools/treelistbox.hxx:195 enum SvTreeListBoxFlags TARGEMPH_VIS include/svtools/treelistbox.hxx:196 diff --git a/include/vcl/treelistbox.hxx b/include/vcl/treelistbox.hxx index 5e7787b9ab88..675d141be53e 100644 --- a/include/vcl/treelistbox.hxx +++ b/include/vcl/treelistbox.hxx @@ -180,13 +180,12 @@ enum class SvTreeListBoxFlags NONE = 0x0000, IN_EDT = 0x0001, EDT_ENABLED = 0x0002, - IS_TRAVELSELECT = 0x0004, - TARGEMPH_VIS = 0x0008, - EDTEND_CALLED = 0x0010, + TARGEMPH_VIS = 0x0004, + EDTEND_CALLED = 0x0008, }; namespace o3tl { - template<> struct typed_flags<SvTreeListBoxFlags> : is_typed_flags<SvTreeListBoxFlags, 0x001f> {}; + template<> struct typed_flags<SvTreeListBoxFlags> : is_typed_flags<SvTreeListBoxFlags, 0x000f> {}; } struct SvTreeListBoxImpl; diff --git a/vcl/source/treelist/treelistbox.cxx b/vcl/source/treelist/treelistbox.cxx index 65114a2a1936..a581fd5172e6 100644 --- a/vcl/source/treelist/treelistbox.cxx +++ b/vcl/source/treelist/treelistbox.cxx @@ -1954,16 +1954,12 @@ void SvTreeListBox::KeyInput( const KeyEvent& rKEvt ) if( IsEditingActive() ) return; - nImpFlags |= SvTreeListBoxFlags::IS_TRAVELSELECT; - if( !pImpl->KeyInput( rKEvt ) ) { bool bHandled = HandleKeyInput( rKEvt ); if ( !bHandled ) Control::KeyInput( rKEvt ); } - - nImpFlags &= ~SvTreeListBoxFlags::IS_TRAVELSELECT; } void SvTreeListBox::RequestingChildren( SvTreeListEntry* pParent ) |