aom: bitwriter_buffer.c: make aom_wb_overwrite_bit() static

From fa82bedb8d462120feced4f790eae15379f096bb Mon Sep 17 00:00:00 2001
From: James Zern <[EMAIL REDACTED]>
Date: Mon, 19 Aug 2024 14:07:51 -0700
Subject: [PATCH] bitwriter_buffer.c: make aom_wb_overwrite_bit() static

This function is unused outside of this file.

Bug: aomedia:3416
Change-Id: I21a838a2b314225190a9b6b76fcc1449ebd972b9
---
 aom_dsp/bitwriter_buffer.c | 5 ++---
 aom_dsp/bitwriter_buffer.h | 2 --
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/aom_dsp/bitwriter_buffer.c b/aom_dsp/bitwriter_buffer.c
index e6e03ccfee..4df2d15fba 100644
--- a/aom_dsp/bitwriter_buffer.c
+++ b/aom_dsp/bitwriter_buffer.c
@@ -41,7 +41,7 @@ void aom_wb_write_bit(struct aom_write_bit_buffer *wb, int bit) {
   wb->bit_offset = off + 1;
 }
 
-void aom_wb_overwrite_bit(struct aom_write_bit_buffer *wb, int bit) {
+static void overwrite_bit(struct aom_write_bit_buffer *wb, int bit) {
   // Do not zero bytes but overwrite exisiting values
   const int off = (int)wb->bit_offset;
   const int p = off / CHAR_BIT;
@@ -67,8 +67,7 @@ void aom_wb_write_unsigned_literal(struct aom_write_bit_buffer *wb,
 void aom_wb_overwrite_literal(struct aom_write_bit_buffer *wb, int data,
                               int bits) {
   int bit;
-  for (bit = bits - 1; bit >= 0; bit--)
-    aom_wb_overwrite_bit(wb, (data >> bit) & 1);
+  for (bit = bits - 1; bit >= 0; bit--) overwrite_bit(wb, (data >> bit) & 1);
 }
 
 void aom_wb_write_inv_signed_literal(struct aom_write_bit_buffer *wb, int data,
diff --git a/aom_dsp/bitwriter_buffer.h b/aom_dsp/bitwriter_buffer.h
index 1d61e86110..31d87c1c81 100644
--- a/aom_dsp/bitwriter_buffer.h
+++ b/aom_dsp/bitwriter_buffer.h
@@ -29,8 +29,6 @@ uint32_t aom_wb_bytes_written(const struct aom_write_bit_buffer *wb);
 
 void aom_wb_write_bit(struct aom_write_bit_buffer *wb, int bit);
 
-void aom_wb_overwrite_bit(struct aom_write_bit_buffer *wb, int bit);
-
 void aom_wb_write_literal(struct aom_write_bit_buffer *wb, int data, int bits);
 
 void aom_wb_write_unsigned_literal(struct aom_write_bit_buffer *wb,