From ae3a9eec7ca876d8bbfc7758671937a1c085ef81 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Wed, 1 Dec 2010 16:37:25 +0000 Subject: [PATCH] cogl-object: remove un-used cogl_object_get_type A non-static function named cogl_object_get_type was inadvertently added during the addition of the CoglObject base type, but there is no public prototype in the headers and it's only referenced inside cogl-object.c to implement cogl_handle_get_type() for compatibility. This removes the function since we don't want to commit to CoglObject always simply being a boxed type. In the future we may want to register hierarchical GTypeInstance based types. --- cogl/cogl-object.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cogl/cogl-object.c b/cogl/cogl-object.c index 7a5472ce3..f80a0ea32 100644 --- a/cogl/cogl-object.c +++ b/cogl/cogl-object.c @@ -103,7 +103,7 @@ cogl_handle_unref (CoglHandle handle) } GType -cogl_object_get_type (void) +cogl_handle_get_type (void) { static GType our_type = 0; @@ -117,12 +117,6 @@ cogl_object_get_type (void) return our_type; } -GType -cogl_handle_get_type (void) -{ - return cogl_object_get_type (); -} - /* XXX: Unlike for cogl_object_get_user_data this code will return * an empty entry if available and no entry for the given key can be * found. */