GES: Remove useless variables

This commit is contained in:
Edward Hervey 2010-07-06 19:02:02 +02:00
parent 8da8dda41f
commit 4708fbb4ca
2 changed files with 2 additions and 8 deletions

View file

@ -308,16 +308,14 @@ ges_timeline_test_source_new (void)
GESTimelineTestSource * GESTimelineTestSource *
ges_timeline_test_source_new_for_nick (gchar * nick) ges_timeline_test_source_new_for_nick (gchar * nick)
{ {
GESTimelineTestSource *ret;
GEnumValue *value; GEnumValue *value;
int i; int i;
for (i = 0, value = &vpattern_enum_values[i]; value->value_nick; for (i = 0, value = &vpattern_enum_values[i]; value->value_nick;
value = &vpattern_enum_values[i++]) { value = &vpattern_enum_values[i++]) {
if (!strcmp (nick, value->value_nick)) { if (!strcmp (nick, value->value_nick)) {
ret = g_object_new (GES_TYPE_TIMELINE_TEST_SOURCE, "vpattern", return g_object_new (GES_TYPE_TIMELINE_TEST_SOURCE, "vpattern",
(gint) value->value, NULL); (gint) value->value, NULL);
return ret;
} }
value++; value++;
} }

View file

@ -184,12 +184,8 @@ ges_tl_transition_create_track_object (GESTimelineObject * obj,
GESTimelineTransition * GESTimelineTransition *
ges_timeline_transition_new (GESVideoTransitionType vtype) ges_timeline_transition_new (GESVideoTransitionType vtype)
{ {
GESTimelineTransition *ret; return g_object_new (GES_TYPE_TIMELINE_TRANSITION, "vtype", (gint) vtype,
ret = g_object_new (GES_TYPE_TIMELINE_TRANSITION, "vtype", (gint) vtype,
NULL); NULL);
return ret;
} }
/** /**