From 7ff0a5b0e47923e7f010db5b6998c0df4b73894e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sun, 29 Jan 2012 21:17:50 +0000 Subject: [PATCH] callcatcher: remove unused NextChannel --- basic/source/inc/iosys.hxx | 1 - basic/source/runtime/iosys.cxx | 11 ----------- unusedcode.easy | 1 - 3 files changed, 13 deletions(-) diff --git a/basic/source/inc/iosys.hxx b/basic/source/inc/iosys.hxx index 7134e7b6855f..6d79bf9ec77e 100644 --- a/basic/source/inc/iosys.hxx +++ b/basic/source/inc/iosys.hxx @@ -103,7 +103,6 @@ public: void Read(rtl::OString&, short = 0); char Read(); void Write(const rtl::OString&, short = 0); - short NextChannel(); // 0 == bad channel or no SvStream (nChannel=0..CHANNELS-1) SbiStream* GetStream( short nChannel ) const; void CloseAll(); // JSM diff --git a/basic/source/runtime/iosys.cxx b/basic/source/runtime/iosys.cxx index 63ae9feb65fd..07a696db8d5f 100644 --- a/basic/source/runtime/iosys.cxx +++ b/basic/source/runtime/iosys.cxx @@ -876,17 +876,6 @@ void SbiIoSystem::Write(const rtl::OString& rBuf, short n) nError = pChan[ nChan ]->Write( rBuf, n ); } -short SbiIoSystem::NextChannel() -{ - for( short i = 1; i < CHANNELS; i++ ) - { - if( !pChan[ i ] ) - return i; - } - nError = SbERR_TOO_MANY_FILES; - return CHANNELS; -} - // nChannel == 0..CHANNELS-1 SbiStream* SbiIoSystem::GetStream( short nChannel ) const diff --git a/unusedcode.easy b/unusedcode.easy index ee60c17fbe0e..928434538eb2 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -130,7 +130,6 @@ SanExtensionImpl::extractCertExt() SanExtensionImpl::setCertExtn(com::sun::star::uno::Sequence, com::sun::star::uno::Sequence, unsigned char) SanExtensionImpl::setCertExtn(unsigned char*, unsigned int, unsigned char*, unsigned int, unsigned char) SbiExpression::VBA_Imp() -SbiIoSystem::NextChannel() SbiRuntime::GetParams() SbiSymPool::Clear() SbxDecimal::getByte(unsigned char&)