From 1750f568d8ea60b1aabcbc4b6b985fc5f5d5eaf0 Mon Sep 17 00:00:00 2001
From: Gregory Maxwell <greg@xiph.org>
Date: Mon, 28 Oct 2013 11:40:00 -0700
Subject: [PATCH] Remove now-unused check_decoder_option.

---
 src/opus_demo.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/opus_demo.c b/src/opus_demo.c
index 5a8fb79a6..ea8b7a7ea 100644
--- a/src/opus_demo.c
+++ b/src/opus_demo.c
@@ -79,15 +79,6 @@ static opus_uint32 char_to_int(unsigned char ch[4])
          | ((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)
-- 
GitLab