vp8l_dec: make VP8LClear() static

This function is unused outside of vp8l_dec.c.

Change-Id: I16733a44ea024ca9601c098641a3cd464bed2b53
This commit is contained in:
James Zern 2024-07-12 12:03:01 -07:00
parent d742b24a88
commit 4e2828bae8
2 changed files with 3 additions and 5 deletions

View File

@ -1417,7 +1417,9 @@ VP8LDecoder* VP8LNew(void) {
return dec; return dec;
} }
void VP8LClear(VP8LDecoder* const dec) { // Resets the decoder in its initial state, reclaiming memory.
// Preserves the dec->status_ value.
static void VP8LClear(VP8LDecoder* const dec) {
int i; int i;
if (dec == NULL) return; if (dec == NULL) return;
ClearMetadata(&dec->hdr_); ClearMetadata(&dec->hdr_);

View File

@ -121,10 +121,6 @@ WEBP_NODISCARD int VP8LDecodeHeader(VP8LDecoder* const dec, VP8Io* const io);
// this function. Returns false in case of error, with updated dec->status_. // this function. Returns false in case of error, with updated dec->status_.
WEBP_NODISCARD int VP8LDecodeImage(VP8LDecoder* const dec); WEBP_NODISCARD int VP8LDecodeImage(VP8LDecoder* const dec);
// Resets the decoder in its initial state, reclaiming memory.
// Preserves the dec->status_ value.
void VP8LClear(VP8LDecoder* const dec);
// Clears and deallocate a lossless decoder instance. // Clears and deallocate a lossless decoder instance.
void VP8LDelete(VP8LDecoder* const dec); void VP8LDelete(VP8LDecoder* const dec);