summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-03-30 20:52:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-04-02 14:53:47 +0100
commitb26df89e6c9405c5818a6f31f2c012ab657c421d (patch)
tree2ffbd0eb473f70da7f03685528b479640bfbe7b2 /basic
parent54bc03051702ad279dfd17471a3d5c30003c892d (diff)
callcatcher: remove some unused code
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/iosys.cxx22
1 files changed, 2 insertions, 20 deletions
diff --git a/basic/source/runtime/iosys.cxx b/basic/source/runtime/iosys.cxx
index 6c72322961b7..675c27f380eb 100644
--- a/basic/source/runtime/iosys.cxx
+++ b/basic/source/runtime/iosys.cxx
@@ -399,12 +399,10 @@ void OslStream::SetSize( sal_uIntPtr nSize )
class UCBStream : public SvStream
{
Reference< XInputStream > xIS;
- Reference< XOutputStream > xOS;
Reference< XStream > xS;
Reference< XSeekable > xSeek;
public:
UCBStream( Reference< XInputStream > & xIS );
- UCBStream( Reference< XOutputStream > & xOS );
UCBStream( Reference< XStream > & xS );
~UCBStream();
virtual sal_uIntPtr GetData( void* pData, sal_uIntPtr nSize );
@@ -420,12 +418,6 @@ UCBStream::UCBStream( Reference< XInputStream > & rStm )
{
}
-UCBStream::UCBStream( Reference< XOutputStream > & rStm )
- : xOS( rStm )
- , xSeek( rStm, UNO_QUERY )
-{
-}
-
UCBStream::UCBStream( Reference< XStream > & rStm )
: xS( rStm )
, xSeek( rStm, UNO_QUERY )
@@ -439,8 +431,6 @@ UCBStream::~UCBStream()
{
if( xIS.is() )
xIS->closeInput();
- else if( xOS.is() )
- xOS->closeOutput();
else if( xS.is() )
{
Reference< XInputStream > xIS_ = xS->getInputStream();
@@ -488,13 +478,7 @@ sal_uIntPtr UCBStream::PutData( const void* pData, sal_uIntPtr nSize )
try
{
Reference< XOutputStream > xOSFromS;
- if( xOS.is() )
- {
- Sequence<sal_Int8> aData( (const sal_Int8 *)pData, nSize );
- xOS->writeBytes( aData );
- return nSize;
- }
- else if( xS.is() && (xOSFromS = xS->getOutputStream()).is() )
+ if( xS.is() && (xOSFromS = xS->getOutputStream()).is() )
{
Sequence<sal_Int8> aData( (const sal_Int8 *)pData, nSize );
xOSFromS->writeBytes( aData );
@@ -537,9 +521,7 @@ void UCBStream::FlushData()
try
{
Reference< XOutputStream > xOSFromS;
- if( xOS.is() )
- xOS->flush();
- else if( xS.is() && (xOSFromS = xS->getOutputStream()).is() )
+ if( xS.is() && (xOSFromS = xS->getOutputStream()).is() )
xOSFromS->flush();
else
SetError( ERRCODE_IO_GENERAL );