From 89c4d607d51b6266501d5bbabed49b00a1e96a05 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Tue, 24 Feb 2015 18:05:52 +0100 Subject: [PATCH] nhttpd: neutrinoapi.cpp disable unused func Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/35c5faac6773d3753b6c86788fb25689aa7bb8a8 Author: Jacek Jendrzej Date: 2015-02-24 (Tue, 24 Feb 2015) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/nhttpd/tuxboxapi/coolstream/neutrinoapi.cpp | 6 +++--- src/nhttpd/tuxboxapi/coolstream/neutrinoapi.h | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/nhttpd/tuxboxapi/coolstream/neutrinoapi.cpp b/src/nhttpd/tuxboxapi/coolstream/neutrinoapi.cpp index b9a09482e..93671d5b8 100644 --- a/src/nhttpd/tuxboxapi/coolstream/neutrinoapi.cpp +++ b/src/nhttpd/tuxboxapi/coolstream/neutrinoapi.cpp @@ -227,14 +227,14 @@ t_channel_id CNeutrinoAPI::ChannelNameToChannelId(std::string search_channel_nam //------------------------------------------------------------------------- // Get functions //------------------------------------------------------------------------- - +#if 0 /* unused funktion*/ bool CNeutrinoAPI::GetStreamInfo(int bitInfo[10]) { char /* *key,*/ *tmpptr, buf[100]; long value; int pos = 0; - memset(bitInfo, 0, sizeof(bitInfo)); + memset(bitInfo, 0, 10); FILE *fd = fopen("/proc/bus/bitstream", "rt"); @@ -261,7 +261,7 @@ bool CNeutrinoAPI::GetStreamInfo(int bitInfo[10]) return true; } - +#endif //------------------------------------------------------------------------- bool CNeutrinoAPI::GetChannelEvents(void) diff --git a/src/nhttpd/tuxboxapi/coolstream/neutrinoapi.h b/src/nhttpd/tuxboxapi/coolstream/neutrinoapi.h index a98a7b5bf..4d504eae0 100644 --- a/src/nhttpd/tuxboxapi/coolstream/neutrinoapi.h +++ b/src/nhttpd/tuxboxapi/coolstream/neutrinoapi.h @@ -53,7 +53,9 @@ class CNeutrinoAPI // get functions to collect data bool GetChannelEvents(void); +#if 0 /* unused funktion*/ bool GetStreamInfo(int bitinfo[10]); +#endif std::string GetServiceName(t_channel_id channel_id); CZapitClient::BouquetChannelList *GetBouquet(unsigned int BouquetNr, int Mode); CZapitClient::BouquetChannelList *GetChannelList(int Mode);