From 1ee42f427fc80a4f3a63ee9fffbf9d187f1253ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 16 Nov 2018 19:57:36 +0000 Subject: [PATCH] drop unused SvTreeListBoxFlags::IS_EXPANDING Change-Id: I60ecf3b157cad3ebc58b6349690eccc0fedbd26a Reviewed-on: https://gerrit.libreoffice.org/63482 Tested-by: Jenkins Reviewed-by: Noel Grandin --- .../clang/unusedenumconstants.writeonly.results | 2 -- include/vcl/treelistbox.hxx | 9 ++++----- 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 : is_typed_flags {}; + template<> struct typed_flags : is_typed_flags {}; } 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;