From 2d1b3bb76b72f23154f015855e43252088dc2f3b Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Tue, 24 Jun 2008 15:19:31 +0000 Subject: INTEGRATION: CWS ab52 (1.6.6); FILE MERGED 2008/06/18 09:19:39 ab 1.6.6.1: #i90029# Removed unused code --- xmlhelp/source/cxxhelp/db/Block.cxx | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'xmlhelp/source/cxxhelp') 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; -- cgit