shithub: sox

Download patch

ref: 471e530902d84fc3c4d21777fbe42af185f3a586
parent: 0d1e4adf24035acf8141048f527cc96c8a5263b9
author: robs <robs>
date: Sun May 27 14:21:40 EDT 2007

Remove dead code

--- a/src/sox.c
+++ b/src/sox.c
@@ -1234,7 +1234,6 @@
   sox_bool need_rate = combiner.rate     != ofile->desc->signal.rate;
   sox_bool need_chan = combiner.channels != ofile->desc->signal.channels;
   int user_mchan = -1;
-  sox_size_t channels = combiner.channels;
   sox_effect_t eff;
 
   { /* Check if we have to add effects to change rate/chans or if the
@@ -1272,7 +1271,6 @@
     /* If reducing channels, it's faster to do so before all other effects: */
     if ((int)i > user_mchan && need_chan && combiner.channels > ofile->desc->signal.channels) {
       add_default_effect("mixer", &effects_mask);
-      channels = ofile->desc->signal.channels;
       need_chan = sox_false;
     }
     /* If reducing rate, it's faster to do so before all other effects