ges: remove useless gpointer variable

gpointer useless is indeed useless since we can use GST_DEBUG_REGISTER_FUNCPTR
to avoid having to store the return of the GST_DEBUG_FUNCPTR registration.

CID #1265771
This commit is contained in:
Luis de Bethencourt 2015-01-26 18:25:02 +00:00
parent 8f79ee9230
commit 1efe0639de

View file

@ -842,7 +842,6 @@ nle_composition_handle_message (GstBin * bin, GstMessage * message)
static void static void
nle_composition_class_init (NleCompositionClass * klass) nle_composition_class_init (NleCompositionClass * klass)
{ {
gpointer useless;
GObjectClass *gobject_class; GObjectClass *gobject_class;
GstElementClass *gstelement_class; GstElementClass *gstelement_class;
GstBinClass *gstbin_class; GstBinClass *gstbin_class;
@ -924,17 +923,16 @@ nle_composition_class_init (NleCompositionClass * klass)
G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE, G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE,
0, NULL, NULL, g_cclosure_marshal_generic, G_TYPE_UINT64, 0, NULL); 0, NULL, NULL, g_cclosure_marshal_generic, G_TYPE_UINT64, 0, NULL);
useless = GST_DEBUG_FUNCPTR (_seek_pipeline_func); GST_DEBUG_REGISTER_FUNCPTR (_seek_pipeline_func);
useless = GST_DEBUG_FUNCPTR (_remove_object_func); GST_DEBUG_REGISTER_FUNCPTR (_remove_object_func);
useless = GST_DEBUG_FUNCPTR (_add_object_func); GST_DEBUG_REGISTER_FUNCPTR (_add_object_func);
useless = GST_DEBUG_FUNCPTR (_update_pipeline_func); GST_DEBUG_REGISTER_FUNCPTR (_update_pipeline_func);
useless = GST_DEBUG_FUNCPTR (_commit_func); GST_DEBUG_REGISTER_FUNCPTR (_commit_func);
useless = GST_DEBUG_FUNCPTR (_emit_commited_signal_func); GST_DEBUG_REGISTER_FUNCPTR (_emit_commited_signal_func);
useless = GST_DEBUG_FUNCPTR (_initialize_stack_func); GST_DEBUG_REGISTER_FUNCPTR (_initialize_stack_func);
/* Just be useless, so the compiler does not warn us /* Just be useless, so the compiler does not warn us
* about our uselessness */ * about our uselessness */
nleobject_class->commit = useless;
nleobject_class->commit = nle_composition_commit_func; nleobject_class->commit = nle_composition_commit_func;
} }