From b1e7f74fa9b351a132e90f78dece51124c3646cf Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 24 Oct 2022 12:58:01 +0100 Subject: WB_BEVELBUTTON and PushButtonValue::mbBevelButton are unused MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ibc2605261de84337f4880f07a5ecb25e934c0251 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141759 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/source/window/builder.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'vcl/source/window') diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index c71b19304813..82002d44f1d4 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -1033,9 +1033,8 @@ namespace VclBuilder::stringmap::iterator aFind = rMap.find(OString("relief")); if (aFind != rMap.end()) { - if (aFind->second == "half") - nBits = WB_FLATBUTTON | WB_BEVELBUTTON; - else if (aFind->second == "none") + assert(aFind->second != "half" && "relief of 'half' unsupported"); + if (aFind->second == "none") nBits = WB_FLATBUTTON; rMap.erase(aFind); } -- cgit