[seed] Revert "Allow access to global object of sandbox"
- From: Alan Knowles <alank src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seed] Revert "Allow access to global object of sandbox"
- Date: Tue, 29 Jun 2010 10:37:03 +0000 (UTC)
commit 6f4a8bd1178150df20ea071716086784094830c5
Author: Alan Knowles <alan akbkhome com>
Date: Tue Jun 29 18:36:10 2010 +0800
Revert "Allow access to global object of sandbox"
This code was not needed, as context.global already existed
This reverts commit a7d0f88b19e1142b9dafbe184bcb1d97a636dbf6.
modules/sandbox/seed-sandbox.c | 20 --------------------
1 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/modules/sandbox/seed-sandbox.c b/modules/sandbox/seed-sandbox.c
index 6c5b46c..b33e57d 100644
--- a/modules/sandbox/seed-sandbox.c
+++ b/modules/sandbox/seed-sandbox.c
@@ -87,25 +87,6 @@ seed_sandbox_context_add_globals (SeedContext ctx,
return seed_make_null (ctx);
}
-static SeedValue
-seed_sandbox_context_get_global_object (SeedContext ctx,
- SeedObject function,
- SeedObject this_object,
- size_t argument_count,
- const SeedValue arguments[],
- SeedException * exception)
-{
- SeedContext c = seed_object_get_private (this_object);
- if (!c)
- {
- seed_make_exception (ctx, exception,
- "ArgumentError", "Context is destroyed");
- return seed_make_undefined (ctx);
- }
-
-
- return seed_context_get_global_object (c);
-}
static SeedValue
seed_sandbox_context_destroy (SeedContext ctx,
@@ -126,7 +107,6 @@ seed_static_function context_funcs[] = {
{"eval", seed_context_eval, 0},
{"add_globals", seed_sandbox_context_add_globals, 0},
{"destroy", seed_sandbox_context_destroy, 0},
- {"get_global_object", seed_sandbox_context_get_global_object },
{NULL, NULL, 0}
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]