shithub: sox

Download patch

ref: 22af69d50f0ecd7fd19acdea3df9292bf720eb4c
parent: 4a7da1a2ffeb475912e7c3d94812af27dd421468
author: Ulrich Klauer <ulrich@chirlu.de>
date: Mon Mar 19 07:16:45 EDT 2012

dither: remove -t/-r options and scale parameter

Remove unused -t and -r options to dither, as well as the dither scale
parameter. The related functionality had already been removed in
version 14.3.0.

--- a/src/dither.c
+++ b/src/dither.c
@@ -335,12 +335,11 @@
   priv_t * p = (priv_t *)effp->priv;
   int c;
   lsx_getopt_t optstate;
-  lsx_getopt_init(argc, argv, "+aSsf:p:rt", NULL, lsx_getopt_flag_none, 1, &optstate);
+  lsx_getopt_init(argc, argv, "+aSsf:p:", NULL, lsx_getopt_flag_none, 1, &optstate);
 
   while ((c = lsx_getopt(&optstate)) != -1) switch (c) {
     case 'a': p->auto_detect = sox_true; break;
     case 'S': p->alt_tpdf = sox_true; break;
-    case 'r': case 't': break; /* No longer in use */
     case 's': p->filter_name = Shape_shibata; break;
     case 'f':
       p->filter_name = lsx_enum_option(c, optstate.arg, filter_names);
@@ -351,7 +350,6 @@
     default: lsx_fail("invalid option `-%c'", optstate.opt); return lsx_usage(effp);
   }
   argc -= optstate.ind, argv += optstate.ind;
-  do {NUMERIC_PARAMETER(dummy, 0.5, 1)} while (0); /* No longer in use */
   return argc? lsx_usage(effp) : SOX_SUCCESS;
 }