diff --git a/include/library/private/libbwc.h b/include/library/private/libbwc.h index c2b003d..5d67736 100755 --- a/include/library/private/libbwc.h +++ b/include/library/private/libbwc.h @@ -76,9 +76,6 @@ char const *const aux, uint32 const size); //==========|==========================|======================|======|=======|==================== - // TODO: remove - void bwc_free_data (bwc_stream *const data); - //==========|==========================|======================|======|=======|==================== uchar create_codec (bwc_codec *const codec); //==========|==========================|======================|======|=======|==================== bwc_codec* configure_codec (bwc_codec *const codec, diff --git a/src/library/libbwc.c b/src/library/libbwc.c index 42b09cc..bf01f88 100755 --- a/src/library/libbwc.c +++ b/src/library/libbwc.c @@ -1552,61 +1552,6 @@ bwc_set_aux(bwc_stream *const data, char const *const aux, uint32 size) return 0; } -/*----------------------------------------------------------------------------------------------------------*\ -! FUNCTION NAME: void bwc_free_data(bwc_stream* file) ! -! -------------- ! -! ! -! DESCRIPTION: ! -! ------------ ! -! This function deallocates the data structure used to store an numerical dataset/compressed ! -! and can be called if an error occurs or once the data is no longer needed is to be closed. ! -! The deallocation will be carried out down to the structure levels that have been allocated. ! -! ! -! PARAMETERS: ! -! ----------- ! -! ! -! Variable Type Description ! -! -------- ---- ----------- ! -! file bwc_stream - Defines a structure used to store all ! -! the relevant parameters and the data ! -! field of a numerical dataset or com- ! -! pressed codestream. ! -! ! -! RETURN VALUE: ! -! ------------- ! -! ! -! Variable Type Description ! -! -------- ---- ----------- ! -! - - - ! -! ! -! DEVELOPMENT HISTORY: ! -! -------------------- ! -! ! -! Date Author Change Id Release Description Of Change ! -! ---- ------ --------- ------- --------------------- ! -! 20.06.2018 Patrick Vogler B87D120 V 0.1.0 function created ! -! 04.12.2019 Patrick Vogler B87E7E4 V 0.1.0 -! ! -\*----------------------------------------------------------------------------------------------------------*/ -void -bwc_free_data(bwc_stream* data) -{ - if(data) - { - if(data->codestream.aux) - { - release_packed_stream(data->codestream.aux); - } - if(data->codestream.com) - { - release_packed_stream(data->codestream.com); - } - free(data->codestream.aux); - free(data->codestream.com); - free(data); - } -} - /*----------------------------------------------------------------------------------------------------------*\ ! FUNCTION NAME: uchar create_codec(bwc_codec *const codec) ! ! -------------- !