From 3242165d9097f39037bda0e29d67cea8aca59d2a Mon Sep 17 00:00:00 2001 From: Gregor Weiss Date: Tue, 2 Jul 2024 18:07:19 +0200 Subject: [PATCH] remove unused bwc_span bwc_stream.codestream.data --- include/library/private/types.h | 1 - src/library/libbwc.c | 5 ----- 2 files changed, 6 deletions(-) diff --git a/include/library/private/types.h b/include/library/private/types.h index 3dc8bf3..0320a8e 100755 --- a/include/library/private/types.h +++ b/include/library/private/types.h @@ -172,7 +172,6 @@ { struct codestream { - bwc_span *data; // Data codestream block. bwc_span *aux; // Auxiliary info. codestream block. bwc_span *com; // Comment codestream block. }codestream; diff --git a/src/library/libbwc.c b/src/library/libbwc.c index 239655c..bbbda4e 100755 --- a/src/library/libbwc.c +++ b/src/library/libbwc.c @@ -1595,10 +1595,6 @@ bwc_free_data(bwc_stream* data) { if(data) { - if(data->codestream.data) - { - release_packed_stream(data->codestream.data); - } if(data->codestream.aux) { release_packed_stream(data->codestream.aux); @@ -1607,7 +1603,6 @@ bwc_free_data(bwc_stream* data) { release_packed_stream(data->codestream.com); } - free(data->codestream.data); free(data->codestream.aux); free(data->codestream.com); free(data);