mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-07 20:06:59 -06:00
Remove unused debug code in Compress/Zstd*.cpp
This commit is contained in:
@@ -1,11 +1,5 @@
|
||||
// (C) 2016 - 2020 Tino Reichardt
|
||||
|
||||
#define DEBUG 0
|
||||
|
||||
#if DEBUG
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "ZstdDecoder.h"
|
||||
|
||||
@@ -37,11 +31,6 @@ STDMETHODIMP CDecoder::SetDecoderProperties2(const Byte * prop, UInt32 size)
|
||||
{
|
||||
DProps *pProps = (DProps *)prop;
|
||||
|
||||
#if DEBUG
|
||||
printf("prop size =%u\n", size);
|
||||
fflush(stdout);
|
||||
#endif
|
||||
|
||||
switch (size) {
|
||||
case 3:
|
||||
memcpy(&_props, pProps, 3);
|
||||
@@ -131,16 +120,6 @@ HRESULT CDecoder::CodeSpec(ISequentialInStream * inStream,
|
||||
}
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
printf("res = %u\n", (unsigned)result);
|
||||
printf("zIn.size = %u\n", (unsigned)zIn.size);
|
||||
printf("zIn.pos = %u\n", (unsigned)zIn.pos);
|
||||
printf("zOut.size = %u\n", (unsigned)zOut.size);
|
||||
printf("zOut.pos = %u\n", (unsigned)zOut.pos);
|
||||
printf("---------------------\n");
|
||||
fflush(stdout);
|
||||
#endif
|
||||
|
||||
/* write decompressed result */
|
||||
if (zOut.pos) {
|
||||
RINOK(WriteStream(outStream, _dstBuf, zOut.pos));
|
||||
@@ -174,9 +153,6 @@ HRESULT CDecoder::CodeSpec(ISequentialInStream * inStream,
|
||||
srcBufLen = _srcBufSize;
|
||||
RINOK(ReadStream(inStream, _srcBuf, &srcBufLen));
|
||||
_processedIn += srcBufLen;
|
||||
#if DEBUG
|
||||
printf("READ = %u\n", (unsigned)srcBufLen);
|
||||
#endif
|
||||
|
||||
/* finished */
|
||||
if (srcBufLen == 0)
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
// (C) 2016 - 2020 Tino Reichardt
|
||||
|
||||
#if 0
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "ZstdEncoder.h"
|
||||
#include "ZstdDecoder.h"
|
||||
@@ -372,19 +368,6 @@ STDMETHODIMP CEncoder::Code(ISequentialInStream *inStream,
|
||||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
printf("err=%u ", (unsigned)err);
|
||||
printf("srcSize=%u ", (unsigned)srcSize);
|
||||
printf("todo=%u\n", ZSTD_todo);
|
||||
printf("inBuff.size=%u ", (unsigned)inBuff.size);
|
||||
printf("inBuff.pos=%u\n", (unsigned)inBuff.pos);
|
||||
printf("outBuff.size=%u ", (unsigned)outBuff.size);
|
||||
printf("outBuff.pos=%u\n\n", (unsigned)outBuff.pos);
|
||||
printf("_processedIn=%u ", (unsigned)_processedIn);
|
||||
printf("_processedOut=%u\n", (unsigned)_processedOut);
|
||||
fflush(stdout);
|
||||
#endif
|
||||
|
||||
/* write output */
|
||||
if (outBuff.pos) {
|
||||
RINOK(WriteStream(outStream, _dstBuf, outBuff.pos));
|
||||
|
||||
Reference in New Issue
Block a user