Commit 0552e7da authored by Julian Bouzas's avatar Julian Bouzas
Browse files

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

parent 3fe1e96e
......@@ -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);
......
......@@ -32,7 +32,6 @@ struct WpParserEndpointLinkData {
char *stream;
} te;
struct EndpointLink {
char *state;
gboolean keep;
} el;
};
......
Supports Markdown
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