From 16d9d1d1122bbf9f6dc0748b41826a59a8551716 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 17 Aug 2020 21:41:33 +0200 Subject: new loplugin:unusedvarsglobal I copied and modified the unusedfields plugin to find unused variables. Change-Id: I18ed6daa202da70a2e564e4fe4760aed7ce070ba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100891 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/inc/driverblocklist.hxx | 1 - vcl/source/window/EnumContext.cxx | 1 - 2 files changed, 2 deletions(-) (limited to 'vcl') diff --git a/vcl/inc/driverblocklist.hxx b/vcl/inc/driverblocklist.hxx index d8f8a40dfdbd..f28dc418383a 100644 --- a/vcl/inc/driverblocklist.hxx +++ b/vcl/inc/driverblocklist.hxx @@ -93,7 +93,6 @@ struct DriverInfo /* versions are assumed to be A.B.C.D packed as 0xAAAABBBBCCCCDDDD */ uint64_t mnDriverVersion; uint64_t mnDriverVersionMax; - static uint64_t allDriverVersions; OUString maSuggestedVersion; OUString maMsg; diff --git a/vcl/source/window/EnumContext.cxx b/vcl/source/window/EnumContext.cxx index b7d001c1b50b..7d3d704180f4 100644 --- a/vcl/source/window/EnumContext.cxx +++ b/vcl/source/window/EnumContext.cxx @@ -40,7 +40,6 @@ o3tl::enumarray maContextVector; } const sal_Int32 EnumContext::NoMatch = 4; -const sal_Int32 EnumContext::OptimalMatch = 0; // Neither application nor context name is "any". EnumContext::EnumContext() : meApplication(Application::NONE), -- cgit