From 72bc2412db4f621d2c08e9b539fc9b9f441065e3 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 10 Jun 2021 15:34:54 +0200 Subject: -Werror,-Wunused-but-set-variable (Clang 13 trunk) ...ever since the code block's introduction in 14bc62ad0d9e0179f4178d2913ebba7abf99755e "INTEGRATION: CWS aquafilepicker02_DEV300" Change-Id: Id4cda7ed087b350361b0207034fc31819d65efad Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116992 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- fpicker/source/aqua/ControlHelper.mm | 2 -- 1 file changed, 2 deletions(-) (limited to 'fpicker') diff --git a/fpicker/source/aqua/ControlHelper.mm b/fpicker/source/aqua/ControlHelper.mm index 100e00dc662a..22b7f37b1a13 100644 --- a/fpicker/source/aqua/ControlHelper.mm +++ b/fpicker/source/aqua/ControlHelper.mm @@ -817,7 +817,6 @@ void ControlHelper::layoutControls() //get the control's bounds NSRect controlRect = [activeControl frame]; int nControlHeight = controlRect.size.height; - int nControlWidth = controlRect.size.width; //subtract the height from the current vertical position, because the control's bounds origin rect will be its lower left hand corner currenttop -= nControlHeight; @@ -859,7 +858,6 @@ void ControlHelper::layoutControls() } else { currenttop += kAquaSpaceSwitchButtonFrameBoundsDiff;//from top - nControlWidth = nCheckboxMaxWidth; int left = (nUsableWidth - nCheckboxMaxWidth) / 2; controlRect.origin.x = left; controlRect.origin.y = currenttop; -- cgit