diff options
author | August Sodora <augsod@gmail.com> | 2011-12-10 19:00:35 -0500 |
---|---|---|
committer | August Sodora <augsod@gmail.com> | 2011-12-10 19:18:51 -0500 |
commit | c64efb1dd5721c3ed4d4aa20b8ef6dcf42592400 (patch) | |
tree | 3a26a4b59486e21e48a544843b49033cc96b7abc /basic | |
parent | dc78a1c44c478dc7abb25ff5cbbb7477348f0dd1 (diff) |
Remove unused code
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/comp/buffer.cxx | 32 | ||||
-rw-r--r-- | basic/source/inc/buffer.hxx | 2 |
2 files changed, 0 insertions, 34 deletions
diff --git a/basic/source/comp/buffer.cxx b/basic/source/comp/buffer.cxx index 4512dbf063ef..ca0e4b29bb7b 100644 --- a/basic/source/comp/buffer.cxx +++ b/basic/source/comp/buffer.cxx @@ -98,25 +98,6 @@ sal_Bool SbiBuffer::Check( sal_uInt16 n ) return sal_True; } -// Conditioning of the buffer onto the passed Byte limit - -void SbiBuffer::Align( sal_Int32 n ) -{ - if( nOff % n ) { - sal_uInt32 nn =( ( nOff + n ) / n ) * n; - if( nn <= UP_LIMIT ) - { - nn = nn - nOff; - if( Check( static_cast<sal_uInt16>(nn) ) ) - { - memset( pCur, 0, nn ); - pCur += nn; - nOff = nOff + nn; - } - } - } -} - // Patch of a Location void SbiBuffer::Patch( sal_uInt32 off, sal_uInt32 val ) @@ -233,17 +214,4 @@ sal_Bool SbiBuffer::operator +=( const String& n ) else return sal_False; } -sal_Bool SbiBuffer::Add( const void* p, sal_uInt16 len ) -{ - if( Check( len ) ) - { - memcpy( pCur, p, len ); - pCur += len; - nOff = nOff + len; - return sal_True; - } else return sal_False; -} - - - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/buffer.hxx b/basic/source/inc/buffer.hxx index db4d5c813194..1fd36b22f453 100644 --- a/basic/source/inc/buffer.hxx +++ b/basic/source/inc/buffer.hxx @@ -47,8 +47,6 @@ public: ~SbiBuffer(); void Patch( sal_uInt32, sal_uInt32 ); void Chain( sal_uInt32 ); - void Align( sal_Int32 ); - sal_Bool Add( const void*, sal_uInt16 ); sal_Bool operator += (const String&); // save basic-string sal_Bool operator += (sal_Int8); // save character sal_Bool operator += (sal_Int16); // save integer |