shithub: opus

Download patch

ref: b8a6b31205858b62a1423807fba32cab73c7f85c
parent: 23340e2249c660af3cd1914128e1845fceddeb97
author: Gregory Maxwell <greg@xiph.org>
date: Thu Feb 3 17:56:01 EST 2011

This removes some pointless/dead code.

--- a/libcelt/bands.c
+++ b/libcelt/bands.c
@@ -1139,7 +1139,6 @@
             haar1(X, N0>>k, 1<<k);
          }
          B<<=recombine;
-         N_B>>=recombine;
 
          /* Scale output for later folding */
          if (lowband_out)
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -1009,7 +1009,6 @@
       VARDECL(celt_sig, _pre);
       celt_sig *pre[2];
       SAVE_STACK;
-      c = 0;
       ALLOC(_pre, CC*(N+COMBFILTER_MAXPERIOD), celt_sig);
 
       pre[0] = _pre;
--- a/libcelt/pitch.c
+++ b/libcelt/pitch.c
@@ -250,7 +250,7 @@
 celt_word16 remove_doubling(celt_word16 *x, int maxperiod, int minperiod,
       int N, int *_T0, int prev_period, celt_word16 prev_gain)
 {
-   int k, i, T, T0, k0;
+   int k, i, T, T0;
    celt_word16 g, g0;
    celt_word16 pg;
    celt_word32 xy,xx,yy;
@@ -291,7 +291,6 @@
 #else
       g = g0 = xy/sqrt(1+xx*yy);
 #endif
-   k0 = 1;
    /* Look for any pitch at T/k */
    for (k=2;k<=15;k++)
    {