mirror of
https://github.com/fmang/opustags.git
synced 2024-11-13 00:42:46 +01:00
delete free_tags, now useless thanks to RAII
This commit is contained in:
parent
7ae7a50151
commit
590a6814dd
@ -143,10 +143,3 @@ void ot::print_tags(opus_tags *tags)
|
||||
puts("");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* \todo Delete this function.
|
||||
*/
|
||||
void ot::free_tags(opus_tags *tags)
|
||||
{
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
||||
/** \} */
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user