summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-06-10 14:58:23 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-06-10 16:44:43 +0200
commite97a9211c08fe28d2b46d0a1371f0b391b5343b2 (patch)
tree87349a09b98956d33506767af9ddc79489116ad2
parent5951da5175b9d7e5b3b47bd0d90989d2ef528c79 (diff)
-Werror,-Wunused-but-set-variable (Clang 13 trunk)
...ever since the code's introduction in adf0066a17538a394550237a54f6fc0027f6ed29 "#i91478# aqua implementation (continued)" Change-Id: I2dd7bbaba9e8068929f4792b7f953cbf01e03a7d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116989 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--vcl/osx/printaccessoryview.mm7
1 files changed, 0 insertions, 7 deletions
diff --git a/vcl/osx/printaccessoryview.mm b/vcl/osx/printaccessoryview.mm
index 7656c1b9df06..92c09f7dd47f 100644
--- a/vcl/osx/printaccessoryview.mm
+++ b/vcl/osx/printaccessoryview.mm
@@ -1063,7 +1063,6 @@ static void addEdit( NSView* pCurParent, CGFloat rCurX, CGFloat& rCurY, CGFloat
OUString aPropertyName;
OUString aGroupHint;
Sequence< OUString > aChoices;
- bool bEnabled = true;
sal_Int64 nMinValue = 0, nMaxValue = 0;
CGFloat nAttachOffset = 0;
bool bIgnore = false;
@@ -1089,12 +1088,6 @@ static void addEdit( NSView* pCurParent, CGFloat rCurX, CGFloat& rCurY, CGFloat
rEntry.Value >>= aVal;
aPropertyName = aVal.Name;
}
- else if( rEntry.Name == "Enabled" )
- {
- bool bValue = true;
- rEntry.Value >>= bValue;
- bEnabled = bValue;
- }
else if( rEntry.Name == "MinValue" )
{
rEntry.Value >>= nMinValue;