string-output-visitor: Favor new visit_free() function

Now that we have a polymorphic visit_free(), we no longer need
string_output_visitor_cleanup(); however, we still need to
expose the subtype for string_output_get_string().

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1465490926-28625-9-git-send-email-eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
Eric Blake 2016-06-09 10:48:39 -06:00 committed by Markus Armbruster
parent b70ce1018a
commit e7ca565629
7 changed files with 11 additions and 16 deletions

View file

@ -326,11 +326,6 @@ static void string_output_free(Visitor *v)
{
StringOutputVisitor *sov = to_sov(v);
string_output_visitor_cleanup(sov);
}
void string_output_visitor_cleanup(StringOutputVisitor *sov)
{
if (sov->string) {
g_string_free(sov->string, true);
}