gstvalue: Remove useless checks

The calling function already checks that the values exists and it's
a valid list

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/453>
This commit is contained in:
Edward Hervey 2020-05-01 15:15:46 +02:00 committed by Sebastian Dröge
parent 761bdc9e5c
commit be76ba1312

View file

@ -5745,10 +5745,6 @@ gst_value_list_equals_range (const GValue * list, const GValue * value)
const GValue *first;
guint list_size, n;
g_assert (G_IS_VALUE (list));
g_assert (G_IS_VALUE (value));
g_assert (GST_VALUE_HOLDS_LIST (list));
/* TODO: compare against an empty list ? No type though... */
list_size = VALUE_LIST_SIZE (list);
if (list_size == 0)