From a91d44317af45314044a6dec65468f682fa276b6 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Tue, 6 Oct 2026 12:22:07 +0200 Subject: [PATCH] svtools: Drop ValueSetItem::mnTextOffset After Change-Id: I0150e699602a625874e5a09b8df38110f52c0c03 Author: Michael Weghorn Date: Tue Oct 6 12:15:49 2026 +0200 svtools: Drop now unused WB_NAMEFIELD logic from ValueSet , that member is only written to, but never read, so drop it completely. Change-Id: I974183e725e3c530162152debd29bbf207b21b6b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211899 Tested-by: Jenkins Reviewed-by: Michael Weghorn --- include/svtools/valueset.hxx | 1 - svtools/source/control/valueset.cxx | 5 ----- 2 files changed, 6 deletions(-) diff --git a/include/svtools/valueset.hxx b/include/svtools/valueset.hxx index a4480bb99cfb..df28168c88a7 100644 --- a/include/svtools/valueset.hxx +++ b/include/svtools/valueset.hxx @@ -179,7 +179,6 @@ private: tools::Rectangle maItemListRect; tools::Long mnItemWidth; tools::Long mnItemHeight; - tools::Long mnTextOffset; tools::Long mnVisLines; tools::Long mnLines; tools::Long mnUserItemWidth; diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index 649fcb626c4f..091b57fd1518 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -85,7 +85,6 @@ ValueSet::ValueSet(std::unique_ptr pScrolledWindow) { mnItemWidth = 0; mnItemHeight = 0; - mnTextOffset = 0; mnVisLines = 0; mnLines = 0; mnUserItemWidth = 0; @@ -790,10 +789,6 @@ void ValueSet::Format(vcl::RenderContext const & rRenderContext) aWinSize.AdjustHeight(-mnMargin * 2); } - mnTextOffset = 0; - - mnTextOffset += mnMargin; - // calculate number of columns if (!mnUserCols) {