From 31ffb87dde348285de3639f74247b61b8b84a8d0 Mon Sep 17 00:00:00 2001 From: Brandon Lewis Date: Wed, 7 Jul 2010 17:34:58 +0200 Subject: [PATCH] remove unneeded _new methods on certain base classes --- docs/libs/ges-sections.txt | 2 -- ges/ges-timeline-overlay.c | 6 ------ ges/ges-timeline-overlay.h | 2 -- ges/ges-timeline-transition.c | 3 ++- ges/ges-track-operation.c | 6 ------ ges/ges-track-transition.c | 8 -------- ges/ges-track-transition.h | 2 -- 7 files changed, 2 insertions(+), 27 deletions(-) diff --git a/docs/libs/ges-sections.txt b/docs/libs/ges-sections.txt index 5ba92f7..e053dd6 100644 --- a/docs/libs/ges-sections.txt +++ b/docs/libs/ges-sections.txt @@ -144,7 +144,6 @@ GES_TRACK_TRANSITION_CLASS GES_TRACK_TRANSITION_GET_CLASS GES_TYPE_TRACK_TRANSITION ges_track_transition_get_type -ges_track_transition_new
@@ -316,7 +315,6 @@ GES_TYPE_TIMELINE_FILE_SOURCE GESTimelineOverlay GESTimelineOverlay GESTimelineOverlayClass -ges_timeline_overlay_new ges_timeline_overlay_get_type GES_IS_TIMELINE_OVERLAY diff --git a/ges/ges-timeline-overlay.c b/ges/ges-timeline-overlay.c index 475e14e..55835bb 100644 --- a/ges/ges-timeline-overlay.c +++ b/ges/ges-timeline-overlay.c @@ -84,9 +84,3 @@ static void ges_timeline_overlay_init (GESTimelineOverlay * self) { } - -GESTimelineOverlay * -ges_timeline_overlay_new (void) -{ - return g_object_new (GES_TYPE_TIMELINE_OVERLAY, NULL); -} diff --git a/ges/ges-timeline-overlay.h b/ges/ges-timeline-overlay.h index ef34641..d988a64 100644 --- a/ges/ges-timeline-overlay.h +++ b/ges/ges-timeline-overlay.h @@ -65,8 +65,6 @@ struct _GESTimelineOverlayClass { GType ges_timeline_overlay_get_type (void); -GESTimelineOverlay* ges_timeline_overlay_new (void); - G_END_DECLS #endif /* _GES_TIMELINE_OVERLAY */ diff --git a/ges/ges-timeline-transition.c b/ges/ges-timeline-transition.c index fb35f8f..bccec96 100644 --- a/ges/ges-timeline-transition.c +++ b/ges/ges-timeline-transition.c @@ -162,7 +162,8 @@ ges_tl_transition_create_track_object (GESTimelineObject * obj, } else { - res = GES_TRACK_OBJECT (ges_track_transition_new ()); + GST_WARNING ("Transitions don't handle this track type"); + return NULL; } return res; diff --git a/ges/ges-track-operation.c b/ges/ges-track-operation.c index 15331ba..a02250f 100644 --- a/ges/ges-track-operation.c +++ b/ges/ges-track-operation.c @@ -110,9 +110,3 @@ static void ges_track_operation_init (GESTrackOperation * self) { } - -GESTrackOperation * -ges_track_operation_new (void) -{ - return g_object_new (GES_TYPE_TRACK_OPERATION, NULL); -} diff --git a/ges/ges-track-transition.c b/ges/ges-track-transition.c index 2652851..54c7803 100644 --- a/ges/ges-track-transition.c +++ b/ges/ges-track-transition.c @@ -144,11 +144,3 @@ static void ges_track_transition_init (GESTrackTransition * self) { } - -GESTrackTransition * -ges_track_transition_new (void) -{ - GESTrackTransition *ret = g_object_new (GES_TYPE_TRACK_TRANSITION, NULL); - - return ret; -} diff --git a/ges/ges-track-transition.h b/ges/ges-track-transition.h index 51d96a7..722817f 100644 --- a/ges/ges-track-transition.h +++ b/ges/ges-track-transition.h @@ -81,8 +81,6 @@ struct _GESTrackTransitionClass { GType ges_track_transition_get_type (void); -GESTrackTransition *ges_track_transition_new (void); - G_END_DECLS #endif -- 2.7.4