mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
remove temporary workaround to access ruby standard object template from C++
This commit is contained in:
parent
388013f92e
commit
797e9f9fa0
2 changed files with 0 additions and 13 deletions
|
@ -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<ObjectTemplate> 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<ObjectTemplate>(tmpl);
|
||||
}
|
||||
|
|
|
@ -4,9 +4,5 @@
|
|||
#include "rr.h"
|
||||
|
||||
void rr_init_template();
|
||||
v8::Handle<v8::ObjectTemplate> rr_template_std_rubyobject();
|
||||
|
||||
//kill
|
||||
VALUE v8_ObjectTemplate_New(VALUE clazz);
|
||||
|
||||
#endif
|
Loading…
Reference in a new issue