summaryrefslogtreecommitdiff
path: root/xmlhelp/source/cxxhelp
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-06-24 15:19:31 +0000
committerKurt Zenker <kz@openoffice.org>2008-06-24 15:19:31 +0000
commit2d1b3bb76b72f23154f015855e43252088dc2f3b (patch)
treef4b8bf329f5110996cc0ed00bb89c0e990e0b544 /xmlhelp/source/cxxhelp
parentae79854cb2f4c37376242da249aacf18eacef04d (diff)
INTEGRATION: CWS ab52 (1.6.6); FILE MERGED
2008/06/18 09:19:39 ab 1.6.6.1: #i90029# Removed unused code
Diffstat (limited to 'xmlhelp/source/cxxhelp')
-rw-r--r--xmlhelp/source/cxxhelp/db/Block.cxx23
1 files changed, 2 insertions, 21 deletions
diff --git a/xmlhelp/source/cxxhelp/db/Block.cxx b/xmlhelp/source/cxxhelp/db/Block.cxx
index fdc94b1f6914..c1b993a820e2 100644
--- a/xmlhelp/source/cxxhelp/db/Block.cxx
+++ b/xmlhelp/source/cxxhelp/db/Block.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: Block.cxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
* This file is part of OpenOffice.org.
*
@@ -84,30 +84,11 @@ void Block::read( util::RandomAccessStream* in )
}
-void Block::write( util::RandomAccessStream* out ) const
-{
- out->writeBytes( (sal_Int8*)(&num_),4 );
- sal_Int32 twoFields = ( free_ | ( isLeaf_ ? 0x80000000 : 0 ) );
- out->writeBytes( (sal_Int8*)(&twoFields),4 );
- out->writeBytes( data_,dbenv_->getDataLen() );
-}
-
-
-void Block::setInteger( sal_Int32 i,sal_Int32 value ) throw( excep::IllegalIndexException )
-{
- if( i < 0 || dbenv_->getDataLen() <= i )
- throw excep::IllegalIndexException(
- rtl::OUString::createFromAscii( "Block::setInteger -> index out of range" ) );
-
- ::setInteger_( &data_[i],value );
-}
-
-
sal_Int32 Block::getInteger( sal_Int32 i ) const throw( excep::IllegalIndexException )
{
if( i < 0 || dbenv_->getDataLen() <= i )
throw excep::IllegalIndexException(
- rtl::OUString::createFromAscii( "Block::setInteger -> index out of range" ) );
+ rtl::OUString::createFromAscii( "Block::getInteger -> index out of range" ) );
sal_Int32 ret = ::getInteger_( &data_[i] );
return ret;