From 4e2828bae85b44c5650bd7cba76583b310731f51 Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 12 Jul 2024 12:03:01 -0700 Subject: [PATCH] vp8l_dec: make VP8LClear() static This function is unused outside of vp8l_dec.c. Change-Id: I16733a44ea024ca9601c098641a3cd464bed2b53 --- src/dec/vp8l_dec.c | 4 +++- src/dec/vp8li_dec.h | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/dec/vp8l_dec.c b/src/dec/vp8l_dec.c index ebb0e7b6..d60f5892 100644 --- a/src/dec/vp8l_dec.c +++ b/src/dec/vp8l_dec.c @@ -1417,7 +1417,9 @@ VP8LDecoder* VP8LNew(void) { 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; if (dec == NULL) return; ClearMetadata(&dec->hdr_); diff --git a/src/dec/vp8li_dec.h b/src/dec/vp8li_dec.h index 9a13bcc9..6f95b357 100644 --- a/src/dec/vp8li_dec.h +++ b/src/dec/vp8li_dec.h @@ -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_. 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. void VP8LDelete(VP8LDecoder* const dec);