diff options
Diffstat (limited to 'io')
-rw-r--r-- | io/source/stm/streamhelper.cxx | 11 | ||||
-rw-r--r-- | io/source/stm/streamhelper.hxx | 3 |
2 files changed, 0 insertions, 14 deletions
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; |