[seed] libseed: Remove Seed.import_namespace. Use the new system.



commit 17f44df8aa7ab04986e6e60ccb21ca1a11003c0e
Author: Robert Carr <racarr svn gnome org>
Date:   Mon May 25 05:06:26 2009 -0400

    libseed: Remove Seed.import_namespace. Use the new system.
---
 libseed/seed-engine.c |   52 -------------------------------------------------
 m4/libtool.m4         |    3 --
 2 files changed, 0 insertions(+), 55 deletions(-)

diff --git a/libseed/seed-engine.c b/libseed/seed-engine.c
index 97bf6b5..77f87af 100644
--- a/libseed/seed-engine.c
+++ b/libseed/seed-engine.c
@@ -972,52 +972,6 @@ seed_gobject_set_property (JSContextRef context,
 }
 
 static JSValueRef
-seed_gi_import_namespace (JSContextRef ctx,
-			  JSObjectRef function,
-			  JSObjectRef this_object,
-			  size_t argumentCount,
-			  const JSValueRef arguments[],
-			  JSValueRef * exception)
-{
-  gchar *namespace;
-  const gchar *version = 0;
-  gchar *jsextension;
-  JSStringRef extension_script;
-
-  ctx = eng->context;
-
-  if (argumentCount == 0)
-    {
-      seed_make_exception (ctx, exception,
-			   "ArgumentError",
-			   "Seed.import_namespace"
-			   " expected 1 or 2 arguments, got 0");
-      return JSValueMakeNull (ctx);
-    }
-
-  namespace = seed_value_to_string (ctx, arguments[0], exception);
-  if (argumentCount == 2)
-    {
-      version = seed_value_to_string (ctx, arguments[1], exception);
-    }
-
-  if (version)
-    jsextension = g_strdup_printf("imports.gi.versions.%s = %s; %s = imports.gi.%s;",
-				  namespace, version, namespace, namespace);
-  else
-    jsextension =
-      g_strdup_printf("%s = imports.gi.%s;", namespace, namespace);
-  extension_script = JSStringCreateWithUTF8CString (jsextension);
-  JSEvaluateScript (ctx, extension_script, NULL, NULL, 0, NULL);
-  JSStringRelease (extension_script);
-
-  g_free ((gchar *) namespace);
-  g_free (jsextension);
-
-  return JSValueMakeNull (ctx);
-}
-
-static JSValueRef
 seed_gobject_constructor_convert_to_type (JSContextRef ctx,
 					  JSObjectRef object,
 					  JSType type,
@@ -1385,9 +1339,6 @@ seed_init (gint * argc, gchar *** argv)
   seed_object_set_property (eng->context, eng->global, "Seed", seed_obj_ref);
   JSValueProtect (eng->context, seed_obj_ref);
 
-  seed_create_function (eng->context, "import_namespace",
-			&seed_gi_import_namespace, seed_obj_ref);
-
   g_irepository_require (g_irepository_get_default (), "GObject", NULL, 0, 0);
   g_irepository_require (g_irepository_get_default (), "GIRepository",
 			 NULL, 0, 0);
@@ -1469,9 +1420,6 @@ seed_init_with_context_group (gint * argc,
   seed_object_set_property (eng->context, eng->global, "Seed", seed_obj_ref);
   JSValueProtect (eng->context, seed_obj_ref);
 
-  seed_create_function (eng->context, "import_namespace",
-			&seed_gi_import_namespace, seed_obj_ref);
-
   g_irepository_require (g_irepository_get_default (), "GObject", NULL, 0, 0);
   g_irepository_require (g_irepository_get_default (), "GIRepository",
 			 NULL, 0, 0);
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 1e7ea47..2ca1c1f 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -4261,9 +4261,6 @@ dnl Note also adjust exclude_expsyms for C++ above.
   openbsd*)
     with_gnu_ld=no
     ;;
-  linux* | k*bsd*-gnu)
-    _LT_TAGVAR(link_all_deplibs, $1)=no
-    ;;
   esac
 
   _LT_TAGVAR(ld_shlibs, $1)=yes



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