diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-07 10:12:55 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-07 11:01:11 +0000 |
commit | e546ed01e6bf6dbd8a30cecead4b0b75e2afe92a (patch) | |
tree | a0802d5bc6f57d75cad302069ff88d4390636660 /package/source/zipapi/MemoryByteGrabber.hxx | |
parent | 3ddaeaab37d585971e376de6ad7b0f06f55f2e1a (diff) |
loplugin:unusedmethods package
Change-Id: I19d6bbb9288d72b99d1023b4983b1c3fff7570e8
Reviewed-on: https://gerrit.libreoffice.org/16811
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'package/source/zipapi/MemoryByteGrabber.hxx')
-rw-r--r-- | package/source/zipapi/MemoryByteGrabber.hxx | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/package/source/zipapi/MemoryByteGrabber.hxx b/package/source/zipapi/MemoryByteGrabber.hxx index 0e2a7393de0d..ce8e0e22622e 100644 --- a/package/source/zipapi/MemoryByteGrabber.hxx +++ b/package/source/zipapi/MemoryByteGrabber.hxx @@ -59,48 +59,13 @@ public: return nBytesToRead; } - sal_Int32 SAL_CALL readSomeBytes( com::sun::star::uno::Sequence< sal_Int8 >& aData, - sal_Int32 nMaxBytesToRead ) - throw(com::sun::star::io::NotConnectedException, com::sun::star::io::BufferSizeExceededException, com::sun::star::io::IOException, com::sun::star::uno::RuntimeException) - { - return readBytes( aData, nMaxBytesToRead ); - } 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) { mnCurrent += nBytesToSkip; } - sal_Int32 SAL_CALL available( ) - throw(com::sun::star::io::NotConnectedException, com::sun::star::io::IOException, com::sun::star::uno::RuntimeException) - { - return mnEnd - mnCurrent; - } // XSeekable chained... - sal_Int64 SAL_CALL seek( sal_Int64 location ) - throw(com::sun::star::lang::IllegalArgumentException, com::sun::star::io::IOException, com::sun::star::uno::RuntimeException) - { - if ( location < 0 || location > mnEnd ) - throw com::sun::star::lang::IllegalArgumentException (); - mnCurrent = static_cast < sal_Int32 > ( location ); - return mnCurrent; - } - sal_Int64 SAL_CALL getPosition( ) - throw(com::sun::star::io::IOException, com::sun::star::uno::RuntimeException) - { - return mnCurrent; - } - sal_Int64 SAL_CALL getLength( ) - throw(com::sun::star::io::IOException, com::sun::star::uno::RuntimeException) - { - return mnEnd; - } - sal_Int8 ReadInt8() - { - if (mnCurrent + 1 > mnEnd ) - return 0; - return mpBuffer [mnCurrent++] & 0xFF; - } sal_Int16 ReadInt16() { if (mnCurrent + 2 > mnEnd ) @@ -121,21 +86,6 @@ public: return nInt32; } - sal_uInt8 ReadUInt8() - { - if (mnCurrent + 1 > mnEnd ) - return 0; - return mpBuffer [mnCurrent++] & 0xFF; - } - sal_uInt16 ReadUInt16() - { - if (mnCurrent + 2 > mnEnd ) - return 0; - - sal_uInt16 nInt16 = mpBuffer [mnCurrent++] & 0xFF; - nInt16 |= ( mpBuffer [mnCurrent++] & 0xFF ) << 8; - return nInt16; - } sal_uInt32 ReadUInt32() { if (mnCurrent + 4 > mnEnd ) |