summaryrefslogtreecommitdiff
path: root/framework/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-04 14:34:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-11 09:48:10 +0200
commit49eb02f07a5af44da59008a238e828b4a9532bef (patch)
tree43c4b4eaacd79fe0bff784a4ef71f4c1080c3912 /framework/source
parent5823ecd54b16974ffe8821a5ae061cd0ecc4cf84 (diff)
new loplugin:unusedvariablemore
collection of heuristics to look for local variables that are never read from i.e. do not contribute to the surrounding logic This is an expensive plugin, since it walks up the parent tree, so it is off by default. Change-Id: Ib8ba292241bd16adf299e8bba4502cb473513a06 Reviewed-on: https://gerrit.libreoffice.org/52450 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/source')
-rw-r--r--framework/source/uielement/complextoolbarcontroller.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/framework/source/uielement/complextoolbarcontroller.cxx b/framework/source/uielement/complextoolbarcontroller.cxx
index 133b3751c309..a473036d913b 100644
--- a/framework/source/uielement/complextoolbarcontroller.cxx
+++ b/framework/source/uielement/complextoolbarcontroller.cxx
@@ -89,7 +89,6 @@ void SAL_CALL ComplexToolbarController::execute( sal_Int16 KeyModifier )
{
Reference< XDispatch > xDispatch;
Reference< XURLTransformer > xURLTransformer;
- OUString aCommandURL;
css::util::URL aTargetURL;
Sequence<PropertyValue> aArgs;
@@ -105,7 +104,6 @@ void SAL_CALL ComplexToolbarController::execute( sal_Int16 KeyModifier )
{
xURLTransformer = m_xURLTransformer;
xDispatch = getDispatchFromCommand( m_aCommandURL );
- aCommandURL = m_aCommandURL;
aTargetURL = getInitializedURL();
aArgs = getExecuteArgs(KeyModifier);
}