summaryrefslogtreecommitdiffstats
path: root/io/source/stm
diff options
context:
space:
mode:
Diffstat (limited to 'io/source/stm')
-rw-r--r--io/source/stm/streamhelper.cxx18
-rw-r--r--io/source/stm/streamhelper.hxx2
2 files changed, 0 insertions, 20 deletions
diff --git a/io/source/stm/streamhelper.cxx b/io/source/stm/streamhelper.cxx
index 2e358a549d39..ac06afae1529 100644
--- a/io/source/stm/streamhelper.cxx
+++ b/io/source/stm/streamhelper.cxx
@@ -177,24 +177,6 @@ void MemRingBuffer::forgetFromStart( sal_Int32 nBytesToForget ) throw (css::io::
}
-void MemRingBuffer::shrink() throw ()
-{
- checkInvariants();
-
- // Up to now, only shrinking of while buffer works.
- // No other shrinking supported up to now.
- if( ! m_nOccupiedBuffer ) {
- if( m_p ) {
- free( m_p );
- }
- m_p = nullptr;
- m_nBufferLen = 0;
- m_nStart = 0;
- }
-
- checkInvariants();
-}
-
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/io/source/stm/streamhelper.hxx b/io/source/stm/streamhelper.hxx
index 519d0e71a7c6..11f65567e129 100644
--- a/io/source/stm/streamhelper.hxx
+++ b/io/source/stm/streamhelper.hxx
@@ -47,8 +47,6 @@ public:
sal_Int32 getSize() const throw();
void forgetFromStart(sal_Int32 nBytesToForget) throw(css::io::BufferSizeExceededException);
- void shrink() throw();
-
private:
void resizeBuffer(sal_Int32 nMinSize) throw(css::io::BufferSizeExceededException);