From 2a3f5d11522cd69f0ce221cde3a63b7e85e94b53 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sat, 3 Nov 2018 14:55:29 +0300 Subject: tdf#120703 PVS: V547 Expression is always true/false Change-Id: I856345576ff5c10a41509a97ad4539272bd55568 Reviewed-on: https://gerrit.libreoffice.org/62803 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- package/source/zipapi/ByteGrabber.cxx | 2 -- 1 file changed, 2 deletions(-) (limited to 'package') diff --git a/package/source/zipapi/ByteGrabber.cxx b/package/source/zipapi/ByteGrabber.cxx index 3c9e17dba00e..29195f849eb5 100644 --- a/package/source/zipapi/ByteGrabber.cxx +++ b/package/source/zipapi/ByteGrabber.cxx @@ -71,8 +71,6 @@ void ByteGrabber::seek( sal_Int64 location ) sal_Int64 nLen = xSeek->getLength(); if ( location < 0 || location > nLen ) throw lang::IllegalArgumentException(THROW_WHERE, uno::Reference< uno::XInterface >(), 1 ); - if (location > nLen ) - location = nLen; xSeek->seek( location ); } -- cgit