delete free_tags, now useless thanks to RAII

This commit is contained in:
Frédéric Mangano-Tarumi 2018-11-06 20:48:13 -05:00
parent 7ae7a50151
commit 590a6814dd
4 changed files with 0 additions and 12 deletions

View File

@ -143,10 +143,3 @@ void ot::print_tags(opus_tags *tags)
puts("");
}
}
/**
* \todo Delete this function.
*/
void ot::free_tags(opus_tags *tags)
{
}

View File

@ -300,7 +300,6 @@ int main(int argc, char **argv){
}
else
ot::print_tags(&tags);
ot::free_tags(&tags);
if(raw_tags)
free(raw_tags);
if(error || !out)

View File

@ -79,7 +79,6 @@ int render_tags(opus_tags *tags, ogg_packet *op);
void delete_tags(opus_tags *tags, const char *field);
int add_tags(opus_tags *tags, const char **tags_to_add, uint32_t count);
void print_tags(opus_tags *tags);
void free_tags(opus_tags *tags);
/** \} */

View File

@ -56,7 +56,6 @@ static bool parse_standard()
throw failure("bad artist");
if (tags.extra_data.size != 0)
throw failure("found mysterious padding data");
ot::free_tags(&tags);
return true;
}
@ -82,7 +81,6 @@ static bool recode_standard()
throw failure("the packet is not the right size");
if (memcmp(packet.packet, standard_OpusTags, packet.bytes) != 0)
throw failure("the rendered packet is not what we expected");
ot::free_tags(&tags);
free(packet.packet);
return true;
}
@ -109,7 +107,6 @@ static bool recode_padding()
throw failure("the packet got too big");
if (memcmp(packet.packet, padded_OpusTags.data(), packet.bytes) != 0)
throw failure("the rendered packet is not what we expected");
ot::free_tags(&tags);
free(packet.packet);
return true;
}