From cd523888f304d297bb7dec5d358d0ee92576cc44 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Thu, 21 Aug 2008 23:22:11 +0000
Subject: [PATCH] Remove ff_acelp_weighted_filter() which is just a function
 wrapping a 1 line loop.

Originally committed as revision 14895 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/acelp_filters.c | 11 -----------
 libavcodec/acelp_filters.h | 15 ---------------
 2 files changed, 26 deletions(-)

diff --git a/libavcodec/acelp_filters.c b/libavcodec/acelp_filters.c
index a75d2291cd9..78937050c35 100644
--- a/libavcodec/acelp_filters.c
+++ b/libavcodec/acelp_filters.c
@@ -141,17 +141,6 @@ int ff_acelp_lp_synthesis_filter(
     return 0;
 }
 
-void ff_acelp_weighted_filter(
-        int16_t *out,
-        const int16_t* in,
-        const int16_t *weight_pow,
-        int filter_length)
-{
-    int n;
-    for(n=0; n<filter_length; n++)
-        out[n] = (in[n] * weight_pow[n] + 0x4000) >> 15; /* (3.12) = (0.15) * (3.12) with rounding */
-}
-
 void ff_acelp_high_pass_filter(
         int16_t* out,
         int hpf_f[2],
diff --git a/libavcodec/acelp_filters.h b/libavcodec/acelp_filters.h
index 324be3b63d8..9c46afa3589 100644
--- a/libavcodec/acelp_filters.h
+++ b/libavcodec/acelp_filters.h
@@ -104,21 +104,6 @@ int ff_acelp_lp_synthesis_filter(
         int stop_on_overflow,
         int rounder);
 
-/**
- * Calculates coefficients of weighted A(z/weight) filter.
- * @param out [out] weighted A(z/weight) result
- *                  filter (-0x8000 <= (3.12) < 0x8000)
- * @param in source filter (-0x8000 <= (3.12) < 0x8000)
- * @param weight_pow array containing weight^i (-0x8000 <= (0.15) < 0x8000)
- * @param filter_length filter length (11 for 10th order LP filter)
- *
- * out[i]=weight_pow[i]*in[i] , i=0..9
- */
-void ff_acelp_weighted_filter(
-        int16_t *out,
-        const int16_t* in,
-        const int16_t *weight_pow,
-        int filter_length);
 
 /**
  * high-pass filtering and upscaling (4.2.5 of G.729).
-- 
GitLab