diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-14 16:31:47 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-15 09:36:41 +0200 |
commit | 802765dbe5f79748453c985da08824fb9ddefe11 (patch) | |
tree | bc2b86b325f419baa41a08020cf746523661447c /package/source/zipapi | |
parent | 52e69bfbba7220fe4181098102876f0e83ffbee1 (diff) |
loplugin:unusedmethods unused return value in oox,package
Change-Id: I63862c3ce32a1106b7de037f422e7e5480e8bfd6
Diffstat (limited to 'package/source/zipapi')
-rw-r--r-- | package/source/zipapi/ByteGrabber.cxx | 3 | ||||
-rw-r--r-- | package/source/zipapi/ZipFile.cxx | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/package/source/zipapi/ByteGrabber.cxx b/package/source/zipapi/ByteGrabber.cxx index 4fb1f029e1b4..a6f23645cc60 100644 --- a/package/source/zipapi/ByteGrabber.cxx +++ b/package/source/zipapi/ByteGrabber.cxx @@ -62,7 +62,7 @@ sal_Int32 SAL_CALL ByteGrabber::readBytes( uno::Sequence< sal_Int8 >& aData, } // XSeekable chained... -sal_Int64 SAL_CALL ByteGrabber::seek( sal_Int64 location ) +void SAL_CALL ByteGrabber::seek( sal_Int64 location ) throw(lang::IllegalArgumentException, io::IOException, uno::RuntimeException) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -74,7 +74,6 @@ sal_Int64 SAL_CALL ByteGrabber::seek( sal_Int64 location ) if (location > nLen ) location = nLen; xSeek->seek( location ); - return location; } else throw io::IOException(THROW_WHERE ); diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx index 236df7192364..670513b270a6 100644 --- a/package/source/zipapi/ZipFile.cxx +++ b/package/source/zipapi/ZipFile.cxx @@ -860,7 +860,7 @@ sal_Int32 ZipFile::readCEN() return nCenPos; } -sal_Int32 ZipFile::recover() +void ZipFile::recover() throw(IOException, ZipException, RuntimeException) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -872,7 +872,7 @@ sal_Int32 ZipFile::recover() { nLength = aGrabber.getLength(); if (nLength == 0 || nLength < ENDHDR) - return -1; + return; aGrabber.seek( 0 ); @@ -1021,8 +1021,6 @@ sal_Int32 ZipFile::recover() nGenPos += nPos; aGrabber.seek( nGenPos ); } - - return 0; } catch ( IllegalArgumentException& ) { |