diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-11-16 19:57:36 +0000 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-17 13:51:07 +0100 |
commit | 1ee42f427fc80a4f3a63ee9fffbf9d187f1253ba (patch) | |
tree | 593d0508641022e675b70ba60135f5633ed4727b | |
parent | bc1407317f1488fd4467422552e85a2966af939a (diff) |
drop unused SvTreeListBoxFlags::IS_EXPANDING
Change-Id: I60ecf3b157cad3ebc58b6349690eccc0fedbd26a
Reviewed-on: https://gerrit.libreoffice.org/63482
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | compilerplugins/clang/unusedenumconstants.writeonly.results | 2 | ||||
-rw-r--r-- | include/vcl/treelistbox.hxx | 9 | ||||
-rw-r--r-- | vcl/source/treelist/treelistbox.cxx | 2 |
3 files changed, 4 insertions, 9 deletions
diff --git a/compilerplugins/clang/unusedenumconstants.writeonly.results b/compilerplugins/clang/unusedenumconstants.writeonly.results index 13c5fd812195..6ba7ebb40d81 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:193 - enum SvTreeListBoxFlags IS_EXPANDING include/svtools/treelistbox.hxx:194 enum SvTreeListBoxFlags IS_TRAVELSELECT include/svtools/treelistbox.hxx:195 diff --git a/include/vcl/treelistbox.hxx b/include/vcl/treelistbox.hxx index 36dd643eb473..5e7787b9ab88 100644 --- a/include/vcl/treelistbox.hxx +++ b/include/vcl/treelistbox.hxx @@ -180,14 +180,13 @@ enum class SvTreeListBoxFlags NONE = 0x0000, IN_EDT = 0x0001, EDT_ENABLED = 0x0002, - IS_EXPANDING = 0x0004, - IS_TRAVELSELECT = 0x0008, - TARGEMPH_VIS = 0x0010, - EDTEND_CALLED = 0x0020, + IS_TRAVELSELECT = 0x0004, + TARGEMPH_VIS = 0x0008, + EDTEND_CALLED = 0x0010, }; namespace o3tl { - template<> struct typed_flags<SvTreeListBoxFlags> : is_typed_flags<SvTreeListBoxFlags, 0x003f> {}; + template<> struct typed_flags<SvTreeListBoxFlags> : is_typed_flags<SvTreeListBoxFlags, 0x001f> {}; } struct SvTreeListBoxImpl; diff --git a/vcl/source/treelist/treelistbox.cxx b/vcl/source/treelist/treelistbox.cxx index 54102dc44ede..65114a2a1936 100644 --- a/vcl/source/treelist/treelistbox.cxx +++ b/vcl/source/treelist/treelistbox.cxx @@ -2143,7 +2143,6 @@ bool SvTreeListBox::Expand( SvTreeListEntry* pParent ) RequestingChildren( pParent ); if( pParent->HasChildren() ) { - nImpFlags |= SvTreeListBoxFlags::IS_EXPANDING; if( ExpandingHdl() ) { bExpanded = true; @@ -2177,7 +2176,6 @@ bool SvTreeListBox::Expand( SvTreeListEntry* pParent ) bool SvTreeListBox::Collapse( SvTreeListEntry* pParent ) { - nImpFlags &= ~SvTreeListBoxFlags::IS_EXPANDING; pHdlEntry = pParent; bool bCollapsed = false; |