registry: name is never NULL

When looking up a feature by name, we never call this internal
function with NULL so we don't have to check for it.
This commit is contained in:
Wim Taymans 2009-10-20 21:43:58 -04:00 committed by Wim Taymans
parent d722d16155
commit 50b9a3ecc3

View file

@ -729,9 +729,6 @@ gst_registry_get_plugin_list (GstRegistry * registry)
static GstPluginFeature *
gst_registry_lookup_feature_locked (GstRegistry * registry, const char *name)
{
if (G_UNLIKELY (name == NULL))
return NULL;
return g_hash_table_lookup (registry->feature_hash, name);
}