gstvalue: Remove useless checks
authorEdward Hervey <edward@centricular.com>
Fri, 1 May 2020 13:15:46 +0000 (15:15 +0200)
committerSebastian Dröge <slomo@coaxion.net>
Tue, 5 May 2020 10:17:49 +0000 (10:17 +0000)
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>

gst/gstvalue.c

index fba5729..1aefce2 100644 (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)