Remove ZSTD_setCCtxParameter()

This commit is contained in:
Stella Lau
2017-08-25 13:58:41 -07:00
parent 0744592d38
commit 18224608ff
4 changed files with 12 additions and 44 deletions
-3
View File
@@ -347,9 +347,6 @@ void ZSTDMT_compressChunk(void* jobDescription)
ZSTD_CCtxParam_setParameter(&jobParams, ZSTD_p_dictMode, (U32)ZSTD_dm_rawContent);
size_t const forceWindowError =
ZSTD_CCtxParam_setParameter(&jobParams, ZSTD_p_forceMaxWindow, !job->firstChunk);
/* Note: ZSTD_setCCtxParameter() should not be used here.
* ZSTD_compressBegin_advanced_internal() copies the ZSTD_CCtx_params
* directly to appliedParams. */
size_t const initError = ZSTD_compressBegin_advanced_internal(cctx, job->srcStart, job->dictSize, jobParams, job->fullFrameSize);
if (ZSTD_isError(initError) || ZSTD_isError(dictModeError) ||
ZSTD_isError(forceWindowError)) { job->cSize = initError; goto _endJob; }