diff options
author | W. Felix Handte <w@felixhandte.com> | 2020-08-05 16:46:32 (GMT) |
---|---|---|
committer | W. Felix Handte <w@felixhandte.com> | 2020-08-05 16:46:32 (GMT) |
commit | d7399232a4d547d7183c193997e17d534d000f52 (patch) | |
tree | 9c787bc27c50af67aeccab90c5e698a36a035bcc /lib/lz4.c | |
parent | cd5d78ebd0a75c68432a1935c8ef9eeb952275c1 (diff) | |
download | lz4-d7399232a4d547d7183c193997e17d534d000f52.zip lz4-d7399232a4d547d7183c193997e17d534d000f52.tar.gz lz4-d7399232a4d547d7183c193997e17d534d000f52.tar.bz2 |
Remove Extraneous Reset in LZ4_attach_dictionary()
Nothing internally sets dirty anymore. The only way to get that is if you use
an uninitialized context, in which case your warranty is void anyways.
Diffstat (limited to 'lib/lz4.c')
-rw-r--r-- | lib/lz4.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -1455,12 +1455,6 @@ void LZ4_attach_dictionary(LZ4_stream_t* workingStream, const LZ4_stream_t* dict workingStream, dictionaryStream, dictCtx != NULL ? dictCtx->dictSize : 0); - /* Calling LZ4_resetStream_fast() here makes sure that changes will not be - * erased by subsequent calls to LZ4_resetStream_fast() in case stream was - * marked as having dirty context, e.g. requiring full reset. - */ - LZ4_resetStream_fast(workingStream); - if (dictCtx != NULL) { /* If the current offset is zero, we will never look in the * external dictionary context, since there is no value a table |