adding a |#if|d out hunk of code to remind me of something later

This commit is contained in:
scc%mozilla.org 2000-09-09 06:40:49 +00:00
Родитель 785ef29b71
Коммит 78af592566
3 изменённых файлов: 81 добавлений и 0 удалений

Просмотреть файл

@ -144,3 +144,30 @@ nsSharedBufferList::UnlinkBuffer( Buffer* aBufferToUnlink )
return aBufferToUnlink; return aBufferToUnlink;
} }
#if 0
template <class CharT>
void
nsChunkList<CharT>::CutTrailingData( PRUint32 aLengthToCut )
{
Chunk* chunk = mLastChunk;
while ( chunk && aLengthToCut )
{
Chunk* prev_chunk = chunk->mPrev;
if ( aLengthToCut < chunk->mDataLength )
{
chunk->mDataLength -= aLengthToCut;
aLengthToCut = 0;
}
else
{
RemoveChunk(chunk);
aLengthToCut -= chunk->mDataLength;
operator delete(chunk);
}
chunk = prev_chunk;
}
}
#endif

Просмотреть файл

@ -144,3 +144,30 @@ nsSharedBufferList::UnlinkBuffer( Buffer* aBufferToUnlink )
return aBufferToUnlink; return aBufferToUnlink;
} }
#if 0
template <class CharT>
void
nsChunkList<CharT>::CutTrailingData( PRUint32 aLengthToCut )
{
Chunk* chunk = mLastChunk;
while ( chunk && aLengthToCut )
{
Chunk* prev_chunk = chunk->mPrev;
if ( aLengthToCut < chunk->mDataLength )
{
chunk->mDataLength -= aLengthToCut;
aLengthToCut = 0;
}
else
{
RemoveChunk(chunk);
aLengthToCut -= chunk->mDataLength;
operator delete(chunk);
}
chunk = prev_chunk;
}
}
#endif

Просмотреть файл

@ -144,3 +144,30 @@ nsSharedBufferList::UnlinkBuffer( Buffer* aBufferToUnlink )
return aBufferToUnlink; return aBufferToUnlink;
} }
#if 0
template <class CharT>
void
nsChunkList<CharT>::CutTrailingData( PRUint32 aLengthToCut )
{
Chunk* chunk = mLastChunk;
while ( chunk && aLengthToCut )
{
Chunk* prev_chunk = chunk->mPrev;
if ( aLengthToCut < chunk->mDataLength )
{
chunk->mDataLength -= aLengthToCut;
aLengthToCut = 0;
}
else
{
RemoveChunk(chunk);
aLengthToCut -= chunk->mDataLength;
operator delete(chunk);
}
chunk = prev_chunk;
}
}
#endif