[libpeas] Small cleanup in PeasObjectModule



commit 3f9e55319c215e7ac216bfa75894061a747dee4d
Author: Garrett Regier <alias301 gmail com>
Date:   Mon Mar 7 01:43:31 2011 -0800

    Small cleanup in PeasObjectModule

 libpeas/peas-object-module.c |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/libpeas/peas-object-module.c b/libpeas/peas-object-module.c
index 7c09331..eb9ea60 100644
--- a/libpeas/peas-object-module.c
+++ b/libpeas/peas-object-module.c
@@ -72,15 +72,6 @@ struct _PeasObjectModulePrivate {
   guint resident : 1;
 };
 
-static void
-peas_object_module_register_types (PeasObjectModule *module)
-{
-  g_return_if_fail (PEAS_IS_OBJECT_MODULE (module));
-  g_return_if_fail (module->priv->register_func != NULL);
-
-  module->priv->register_func (module);
-}
-
 static gboolean
 peas_object_module_load (GTypeModule *gmodule)
 {
@@ -133,7 +124,7 @@ peas_object_module_load (GTypeModule *gmodule)
   if (module->priv->resident)
     g_module_make_resident (module->priv->library);
 
-  peas_object_module_register_types (module);
+  module->priv->register_func (module);
 
   return TRUE;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]