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 *
ges_timeline_test_source_new_for_nick (gchar * nick)
{
GESTimelineTestSource *ret;
GEnumValue *value;
int i;
for (i = 0, value = &vpattern_enum_values[i]; value->value_nick;
value = &vpattern_enum_values[i++]) {
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);
return ret;
}
value++;
}

View file

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