shithub: opus

Download patch

ref: 1750f568d8ea60b1aabcbc4b6b985fc5f5d5eaf0
parent: 9c23f5cdca89b9ef7af158d19f436360bb404837
author: Gregory Maxwell <[email protected]>
date: Mon Oct 28 07:40:00 EDT 2013

Remove now-unused check_decoder_option.

--- a/src/opus_demo.c
+++ b/src/opus_demo.c
@@ -79,15 +79,6 @@
          | ((opus_uint32)ch[2]<< 8) |  (opus_uint32)ch[3];
 }
 
-static void check_decoder_option(int encode_only, const char *opt)
-{
-   if (encode_only)
-   {
-      fprintf(stderr, "option %s is only for decoding\n", opt);
-      exit(EXIT_FAILURE);
-   }
-}
-
 static void check_encoder_option(int decode_only, const char *opt)
 {
    if (decode_only)