summaryrefslogtreecommitdiff
path: root/package/source/zipapi/ByteChucker.cxx
diff options
context:
space:
mode:
authorMartin Gallwey <mtg@openoffice.org>2001-08-08 17:21:21 +0000
committerMartin Gallwey <mtg@openoffice.org>2001-08-08 17:21:21 +0000
commitfd676f8c2f3cbccc71db2c3f0af6c3bb72a86895 (patch)
treeb9ea776241eebb1d8b1bbdfd4a60730afe67b86b /package/source/zipapi/ByteChucker.cxx
parentc01cf400c419d6dedcc2cc593f7d3139e87e8023 (diff)
#86708# remove evil code that is thankfully no longer necessary
Diffstat (limited to 'package/source/zipapi/ByteChucker.cxx')
-rw-r--r--package/source/zipapi/ByteChucker.cxx24
1 files changed, 2 insertions, 22 deletions
diff --git a/package/source/zipapi/ByteChucker.cxx b/package/source/zipapi/ByteChucker.cxx
index c0d9663d4f8c..7bd29b49263b 100644
--- a/package/source/zipapi/ByteChucker.cxx
+++ b/package/source/zipapi/ByteChucker.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ByteChucker.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: mtg $ $Date: 2001-07-04 14:56:24 $
+ * last change: $Author: mtg $ $Date: 2001-08-08 18:21:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -84,7 +84,6 @@ ByteChucker::ByteChucker(Reference<XOutputStream> xOstream)
, nBufferSize ( n_ConstNonSpannableBufferSize )
, nCurrentBufferPos ( 0 )
, bSpannable ( sal_True )
-, bNextWriteIsAtomic ( sal_False )
{
}
@@ -157,25 +156,6 @@ sal_Int64 SAL_CALL ByteChucker::getLength( )
throw IOException();
}
-void ByteChucker::setSpannable ( sal_Bool bNewSpannable )
-{
- // if current data isn't spannable, then it's been stored in the Buffer
- // until we know how much of it there is. Once we start recieving
- // spannable data again, we'll pass it on
- if (!isSpannable() && bNewSpannable)
- {
- bNextWriteIsAtomic = sal_True;
- sal_Int32 nOldLength = aBuffer.getLength();
- aBuffer.realloc ( nCurrentBufferPos );
- xStream->writeBytes( aBuffer );
- aBuffer.realloc ( nOldLength );
- pBuffer = aBuffer.getArray();
- bNextWriteIsAtomic = sal_False;
- nCurrentBufferPos = 0;
- }
- bSpannable = bNewSpannable;
-}
-
ByteChucker& ByteChucker::operator << (sal_Int8 nInt8)
{
p1Sequence[0] = nInt8 & 0xFF;