Revert unnecessary seqCollector adjustment

This commit is contained in:
senhuang42 2020-11-02 10:59:06 -05:00
parent e8501e00b8
commit e6178f837f
2 changed files with 1 additions and 3 deletions

View File

@ -2562,7 +2562,6 @@ size_t ZSTD_getSequences(ZSTD_CCtx* zc, ZSTD_Sequence* outSeqs,
seqCollector.seqStart = outSeqs;
seqCollector.seqIndex = 0;
seqCollector.maxSequences = outSeqsSize;
seqCollector.format = format;
zc->seqCollector = seqCollector;
ZSTD_compress2(zc, dst, dstCapacity, src, srcSize);
@ -2586,7 +2585,7 @@ size_t ZSTD_getSequences(ZSTD_CCtx* zc, ZSTD_Sequence* outSeqs,
}
zc->seqCollector.seqIndex = totalSeqs;
}
return zc->seqCollector.seqIndex;
}

View File

@ -206,7 +206,6 @@ typedef struct {
ZSTD_Sequence* seqStart;
size_t seqIndex;
size_t maxSequences;
ZSTD_sequenceFormat_e format;
} SeqCollector;
struct ZSTD_CCtx_params_s {