From 0d57a5dc28c904ad765fea12f8ab40e3bd6f05f4 Mon Sep 17 00:00:00 2001
From: Gregory Maxwell <greg@xiph.org>
Date: Mon, 6 Aug 2012 10:52:27 -0400
Subject: [PATCH] Disable silk_get_TOC in the code, as it's not used or
 exposed.

---
 silk/API.h     | 2 ++
 silk/dec_API.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/silk/API.h b/silk/API.h
index be1671d12..c77ad2f5b 100644
--- a/silk/API.h
+++ b/silk/API.h
@@ -121,6 +121,7 @@ opus_int silk_Decode(                                   /* O    Returns error co
     opus_int32                      *nSamplesOut        /* O    Number of samples decoded                       */
 );
 
+#if 0
 /**************************************/
 /* Get table of contents for a packet */
 /**************************************/
@@ -130,6 +131,7 @@ opus_int silk_get_TOC(
     const opus_int                  nFramesPerPayload,  /* I    Number of SILK frames per payload           */
     silk_TOC_struct                 *Silk_TOC           /* O    Type of content                             */
 );
+#endif
 
 #ifdef __cplusplus
 }
diff --git a/silk/dec_API.c b/silk/dec_API.c
index 2ca245191..60beef6eb 100644
--- a/silk/dec_API.c
+++ b/silk/dec_API.c
@@ -340,6 +340,7 @@ opus_int silk_Decode(                                   /* O    Returns error co
     return ret;
 }
 
+#if 0
 /* Getting table of contents for a packet */
 opus_int silk_get_TOC(
     const opus_uint8                *payload,           /* I    Payload data                                */
@@ -371,3 +372,4 @@ opus_int silk_get_TOC(
 
     return ret;
 }
+#endif
-- 
GitLab