From 1a7e0cfd86c03607f9009aec40dbfa5d43de0c8e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 2 Jul 2015 09:40:48 +0200 Subject: loplugin:unusedmethods bridges,ucbhelper,io,pyuno Change-Id: I483deb33b9d861af679d4a36e13585345401e10d Reviewed-on: https://gerrit.libreoffice.org/16681 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- io/source/stm/streamhelper.cxx | 11 ----------- io/source/stm/streamhelper.hxx | 3 --- 2 files changed, 14 deletions(-) (limited to 'io/source/stm') diff --git a/io/source/stm/streamhelper.cxx b/io/source/stm/streamhelper.cxx index 988fb24a5c13..516d4e506912 100644 --- a/io/source/stm/streamhelper.cxx +++ b/io/source/stm/streamhelper.cxx @@ -202,17 +202,6 @@ void MemRingBuffer::forgetFromStart( sal_Int32 nBytesToForget ) throw (IRingBuff } -void MemRingBuffer::forgetFromEnd( sal_Int32 nBytesToForget ) throw (IRingBuffer_OutOfBoundsException) -{ - checkInvariants(); - if( nBytesToForget > m_nOccupiedBuffer ) { - throw IRingBuffer_OutOfBoundsException(); - } - m_nOccupiedBuffer -= nBytesToForget; - checkInvariants(); -} - - void MemRingBuffer::shrink() throw () { checkInvariants(); diff --git a/io/source/stm/streamhelper.hxx b/io/source/stm/streamhelper.hxx index 56b7412e0d89..0275557ace8c 100644 --- a/io/source/stm/streamhelper.hxx +++ b/io/source/stm/streamhelper.hxx @@ -57,7 +57,6 @@ public: virtual void skip( sal_Int32 nBytesToSkip ) throw( I_FIFO_OutOfBoundsException )=0; virtual sal_Int32 getSize() const throw( ) =0; - virtual void shrink() throw() = 0; virtual ~I_FIFO() {}; }; @@ -87,7 +86,6 @@ public: throw( IRingBuffer_OutOfBoundsException )=0; virtual sal_Int32 getSize() const throw( ) =0; virtual void forgetFromStart( sal_Int32 nBytesToForget ) throw(IRingBuffer_OutOfBoundsException)=0; - virtual void forgetFromEnd( sal_Int32 nBytesToForget ) throw(IRingBuffer_OutOfBoundsException)=0; virtual void shrink() throw() = 0; virtual ~IRingBuffer() {}; }; @@ -107,7 +105,6 @@ public: throw( IRingBuffer_OutOfBoundsException ) SAL_OVERRIDE; virtual sal_Int32 getSize() const throw( ) SAL_OVERRIDE; virtual void forgetFromStart( sal_Int32 nBytesToForget ) throw(IRingBuffer_OutOfBoundsException) SAL_OVERRIDE; - virtual void forgetFromEnd( sal_Int32 nBytesToForget ) throw(IRingBuffer_OutOfBoundsException) SAL_OVERRIDE; virtual void shrink() throw() SAL_OVERRIDE; -- cgit