aom: rd.c: remove function w/CONFIG_REALTIME_ONLY=1

From 8906f0031a53089e2bf76fd44202d76ef8ffcf4c Mon Sep 17 00:00:00 2001
From: James Zern <[EMAIL REDACTED]>
Date: Wed, 21 Aug 2024 13:45:10 -0700
Subject: [PATCH] rd.c: remove function w/CONFIG_REALTIME_ONLY=1

av1_get_adaptive_rdmult() is only used by av1_get_adaptive_rdmult()
which isn't included in this config.

Bug: aomedia:3416
Change-Id: I48ff86c66583adad8d56de90e05e7548248ce273
---
 av1/encoder/rd.c | 2 ++
 av1/encoder/rd.h | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/av1/encoder/rd.c b/av1/encoder/rd.c
index 5ce0d68ac..e77dbc7a1 100644
--- a/av1/encoder/rd.c
+++ b/av1/encoder/rd.c
@@ -470,6 +470,7 @@ int av1_adjust_q_from_delta_q_res(int delta_q_res, int prev_qindex,
   return adjust_qindex;
 }
 
+#if !CONFIG_REALTIME_ONLY
 int av1_get_adaptive_rdmult(const AV1_COMP *cpi, double beta) {
   assert(beta > 0.0);
   const AV1_COMMON *cm = &cpi->common;
@@ -488,6 +489,7 @@ int av1_get_adaptive_rdmult(const AV1_COMP *cpi, double beta) {
                    is_stat_consumption_stage(cpi)) /
                beta);
 }
+#endif  // !CONFIG_REALTIME_ONLY
 
 static int compute_rd_thresh_factor(int qindex, aom_bit_depth_t bit_depth) {
   double q;
diff --git a/av1/encoder/rd.h b/av1/encoder/rd.h
index b6b2f76ad..d4db276b8 100644
--- a/av1/encoder/rd.h
+++ b/av1/encoder/rd.h
@@ -369,7 +369,9 @@ void av1_fill_mv_costs(const nmv_context *nmvc, int integer_mv, int usehp,
 
 void av1_fill_dv_costs(const nmv_context *ndvc, IntraBCMVCosts *dv_costs);
 
+#if !CONFIG_REALTIME_ONLY
 int av1_get_adaptive_rdmult(const struct AV1_COMP *cpi, double beta);
+#endif
 
 int av1_get_deltaq_offset(aom_bit_depth_t bit_depth, int qindex, double beta);