decompress: conditionally remove legacy members from context

Remove the then unneeded variables from the struct,
and all accesses to them.
This commit is contained in:
Norbert Lange
2021-09-26 12:12:17 +02:00
parent 32a8443b5c
commit 02296cac82
2 changed files with 6 additions and 0 deletions
@@ -158,9 +158,11 @@ struct ZSTD_DCtx_s
size_t outStart;
size_t outEnd;
size_t lhSize;
#if defined(ZSTD_LEGACY_SUPPORT) && (ZSTD_LEGACY_SUPPORT>=1)
void* legacyContext;
U32 previousLegacyVersion;
U32 legacyVersion;
#endif
U32 hostageByte;
int noForwardProgress;
ZSTD_bufferMode_e outBufferMode;