From cb8204b61e17ac222f2368000602cb4295909a4c Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Wed, 8 Feb 2012 18:18:28 +0400 Subject: [PATCH] eitd/sectionsd.cpp: remove unused sendShort Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/e135c104b16d116f2ce9be34489d7d1360f63b61 Author: [CST] Focus Date: 2012-02-08 (Wed, 08 Feb 2012) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/eitd/sectionsd.cpp | 42 ------------------------------------------ 1 file changed, 42 deletions(-) diff --git a/src/eitd/sectionsd.cpp b/src/eitd/sectionsd.cpp index 730ad9fe0..85ff560ff 100644 --- a/src/eitd/sectionsd.cpp +++ b/src/eitd/sectionsd.cpp @@ -2232,48 +2232,6 @@ out: delete[] evtList; } -// Sendet ein short EPG, unlocked die events, unpaused dmxEIT -//FIXME -static void sendShort(int connfd, const SIevent& e, const SItime& t) -{ - - struct sectionsd::msgResponseHeader responseHeader; - - responseHeader.dataLength = - 12 + 1 + // Unique-Key + del - e.getName().length() + 1 + // name + del - 8 + 1 + // start time + del - 8 + 1 + 1; // duration + del + 0 - char* msgData = new char[responseHeader.dataLength]; - - if (!msgData) - { - fprintf(stderr, "low on memory!\n"); - unlockEvents(); - responseHeader.dataLength = 0; - goto out; - } - - sprintf(msgData, - "%012llx\n%s\n%08lx\n%08x\n", - e.uniqueKey(), - e.getName().c_str(), - t.startzeit, - t.dauer - ); - unlockEvents(); - -out: - if(writeNbytes(connfd, (const char *)&responseHeader, sizeof(responseHeader), WRITE_TIMEOUT_IN_SECONDS)) { - if (responseHeader.dataLength) - writeNbytes(connfd, msgData, responseHeader.dataLength, WRITE_TIMEOUT_IN_SECONDS); - } else - dputs("[sectionsd] Fehler/Timeout bei write"); - - if (msgData) - delete[] msgData; -} - static void commandEventListTVids(int connfd, char* data, const unsigned dataLength) { dputs("Request of TV event list (IDs).\n");