From 797e9f9fa0475c25e75c7a3829787ce4fd1ad1b8 Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Mon, 7 Jun 2010 10:22:12 +0300 Subject: [PATCH] remove temporary workaround to access ruby standard object template from C++ --- ext/v8/v8_template.cpp | 9 --------- ext/v8/v8_template.h | 4 ---- 2 files changed, 13 deletions(-) diff --git a/ext/v8/v8_template.cpp b/ext/v8/v8_template.cpp index 0e4f7f6..36e1cfc 100644 --- a/ext/v8/v8_template.cpp +++ b/ext/v8/v8_template.cpp @@ -188,13 +188,4 @@ void rr_init_template() { VALUE FunctionTemplate = rr_define_class("FunctionTemplate", Template); rr_define_singleton_method(FunctionTemplate, "New", Func::New, 0); rr_define_method(FunctionTemplate, "GetFunction", Func::GetFunction, 0); - - -} - -Handle rr_template_std_rubyobject() { - VALUE V8 = rb_define_module("V8"); - VALUE to = rb_define_module_under(V8, "To"); - VALUE tmpl = rb_funcall(to, rb_intern("template"), 0); - return V8_Ref_Get(tmpl); } diff --git a/ext/v8/v8_template.h b/ext/v8/v8_template.h index 7ac480c..ea60468 100644 --- a/ext/v8/v8_template.h +++ b/ext/v8/v8_template.h @@ -4,9 +4,5 @@ #include "rr.h" void rr_init_template(); -v8::Handle rr_template_std_rubyobject(); - -//kill -VALUE v8_ObjectTemplate_New(VALUE clazz); #endif \ No newline at end of file