From 49eb02f07a5af44da59008a238e828b4a9532bef Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 4 Apr 2018 14:34:07 +0200 Subject: 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 Reviewed-by: Noel Grandin --- emfio/source/reader/wmfreader.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'emfio') diff --git a/emfio/source/reader/wmfreader.cxx b/emfio/source/reader/wmfreader.cxx index eafff0378716..4d5161ed46b9 100644 --- a/emfio/source/reader/wmfreader.cxx +++ b/emfio/source/reader/wmfreader.cxx @@ -560,7 +560,6 @@ namespace emfio sal_uInt16 nLen = 0, nOptions = 0; mpInputStream->ReadUInt16( nLen ).ReadUInt16( nOptions ); - tools::Rectangle aRect; if (nOptions & ETO_CLIPPED) { nNonStringLen += 2 * sizeof(sal_uInt16); @@ -571,9 +570,9 @@ namespace emfio break; } - const Point aPt1( ReadPoint() ); - const Point aPt2( ReadPoint() ); - aRect = tools::Rectangle( aPt1, aPt2 ); + ReadPoint(); + ReadPoint(); + SAL_WARN("vcl.wmf", "clipping unsupported"); } ComplexTextLayoutFlags nTextLayoutMode = ComplexTextLayoutFlags::Default; -- cgit