Commit e1378259 authored by Josh Coalson's avatar Josh Coalson

remove unused code

parent c0da1961
......@@ -88,7 +88,6 @@ typedef struct {
} encoder;
FILE *fin;
FILE *fout;
FLAC__StreamMetadata *seek_table_template;
} EncoderSession;
......@@ -1317,13 +1316,8 @@ FLAC__bool EncoderSession_construct(EncoderSession *e, FLAC__bool use_ogg, FLAC_
#endif
e->fin = infile;
e->fout = 0;
e->seek_table_template = 0;
if(e->is_stdout) {
e->fout = grabbag__file_get_binary_stdout();
}
if(0 == (e->seek_table_template = FLAC__metadata_object_new(FLAC__METADATA_TYPE_SEEKTABLE))) {
flac__utils_printf(stderr, 1, "%s: ERROR allocating memory for seek table\n", e->inbasefilename);
return false;
......@@ -1354,8 +1348,6 @@ void EncoderSession_destroy(EncoderSession *e)
{
if(e->fin != stdin)
fclose(e->fin);
if(0 != e->fout && e->fout != stdout)
fclose(e->fout);
#ifdef FLAC__HAS_OGG
if(e->use_ogg) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment