parser-endpoint-link: don't parse unused state value

This commit is contained in:
Julian Bouzas 2019-12-11 15:59:38 -05:00
parent 3fe1e96e2e
commit 0552e7da87
2 changed files with 0 additions and 8 deletions

View file

@ -86,7 +86,6 @@ wp_parser_endpoint_link_data_destroy (gpointer p)
g_clear_pointer (&data->te.endpoint_data.media_class, g_free);
g_clear_pointer (&data->te.endpoint_data.props, wp_properties_unref);
g_clear_pointer (&data->te.stream, g_free);
g_clear_pointer (&data->el.state, g_free);
g_slice_free (struct WpParserEndpointLinkData, data);
}
@ -159,7 +158,6 @@ wp_parser_endpoint_link_data_new (const gchar *location)
* stream (string)
*
* [endpoint-link]
* state (string)
* keep (bool)
*/
@ -228,11 +226,6 @@ wp_parser_endpoint_link_data_new (const gchar *location)
if (!el)
goto error;
/* Get the endpoint link state */
res->el.state = wp_toml_table_get_string (el, "state");
if (!res->el.state)
res->el.state = g_strdup ("active");
/* Get the endpoint link keep */
res->el.keep = FALSE;
wp_toml_table_get_boolean (el, "keep", &res->el.keep);

View file

@ -32,7 +32,6 @@ struct WpParserEndpointLinkData {
char *stream;
} te;
struct EndpointLink {
char *state;
gboolean keep;
} el;
};