[Libreoffice-commits] .: basic/source

August Sodora augsod at kemper.freedesktop.org
Sat Dec 10 16:19:02 PST 2011


 basic/source/comp/buffer.cxx |   32 --------------------------------
 basic/source/inc/buffer.hxx  |    2 --
 2 files changed, 34 deletions(-)

New commits:
commit c64efb1dd5721c3ed4d4aa20b8ef6dcf42592400
Author: August Sodora <augsod at gmail.com>
Date:   Sat Dec 10 19:00:35 2011 -0500

    Remove unused code

diff --git a/basic/source/comp/buffer.cxx b/basic/source/comp/buffer.cxx
index 4512dbf..ca0e4b2 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 db4d5c8..1fd36b2 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


More information about the Libreoffice-commits mailing list