From a792aa2c48490e43f7460c7418048d32dc891a62 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 14 Jul 2015 10:25:32 +0200 Subject: loplugin:unusedmethods toolkit,package Change-Id: I83618cd2fd12fb0c1691dc7255fc7192e68649cd Reviewed-on: https://gerrit.libreoffice.org/17031 Tested-by: Jenkins Reviewed-by: Noel Grandin --- package/source/zipapi/MemoryByteGrabber.hxx | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'package') diff --git a/package/source/zipapi/MemoryByteGrabber.hxx b/package/source/zipapi/MemoryByteGrabber.hxx index ce8e0e22622e..ff173e3a17af 100644 --- a/package/source/zipapi/MemoryByteGrabber.hxx +++ b/package/source/zipapi/MemoryByteGrabber.hxx @@ -43,21 +43,6 @@ public: const sal_Int8 * getCurrentPos () { return mpBuffer + mnCurrent; } // XInputStream chained - sal_Int32 SAL_CALL readBytes( com::sun::star::uno::Sequence< sal_Int8 >& aData, - sal_Int32 nBytesToRead ) - throw(com::sun::star::io::NotConnectedException, com::sun::star::io::BufferSizeExceededException, com::sun::star::io::IOException, com::sun::star::uno::RuntimeException) - { - if ( nBytesToRead < 0) - throw com::sun::star::io::BufferSizeExceededException(); - - if (nBytesToRead + mnCurrent > mnEnd) - nBytesToRead = mnEnd - mnCurrent; - - aData.realloc ( nBytesToRead ); - memcpy( aData.getArray(), mpBuffer + mnCurrent, nBytesToRead ); - mnCurrent += nBytesToRead; - return nBytesToRead; - } void SAL_CALL skipBytes( sal_Int32 nBytesToSkip ) throw(com::sun::star::io::NotConnectedException, com::sun::star::io::BufferSizeExceededException, com::sun::star::io::IOException, com::sun::star::uno::RuntimeException) -- cgit