removed dead code

This commit is contained in:
Anshul Maheshwari 2015-05-18 19:36:22 +05:30
parent d54a2d9486
commit f2fc93b7f8

View File

@ -2,9 +2,6 @@
#include "lib_ccx.h"
#include "ccx_common_option.h"
static char *text;
static int text_size = 0;
int temp_debug = 0; // This is a convenience variable used to enable/disable debug on variable conditions. Find references to understand.
void timestamp_to_srttime(uint64_t timestamp, char *buffer) {
@ -95,18 +92,6 @@ bool_t in_array(uint16_t *array, uint16_t length, uint16_t element) {
return r;
}
/* Alloc text space */
void resize_text()
{
text_size = (!text_size)?1024:text_size*2;
if (text)
free (text);
text=(char *) malloc (text_size);
if (!text)
fatal (EXIT_NOT_ENOUGH_MEMORY, "Not enough memory for text buffer.");
memset (text,0,text_size);
}
/* Write formatted message to stderr and then exit. */
void fatal(int exit_code, const char *fmt, ...)
{