Changeset 103

Show
Ignore:
Timestamp:
10/05/2006 18:34:25 (2 years ago)
Author:
mental
Message:

remove Sandbox::Safe#_eval which is no longer needed

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/bin/sandbox_irb

    r94 r103  
    1 #!/usr/bin/env ruby 
     1#! /scratch/mental/ruby-sandbox/build/../install/bin/ruby 
    22require 'irb' 
    33require 'sandbox/server' 
  • trunk/bin/sandbox_server

    r94 r103  
    1 #!/usr/bin/env ruby 
     1#! /scratch/mental/ruby-sandbox/build/../install/bin/ruby 
    22require 'optparse' 
    33require 'ostruct' 
  • trunk/ext/sand_table/sand_table.c

    r102 r103  
    584584  sandbox_import_class_path( kit, rb_class2name( klass ), 1 ); 
    585585  return Qnil; 
    586 } 
    587  
    588 VALUE 
    589 sandbox_safe_go_go_go(str) 
    590   VALUE str; 
    591 { 
    592   return rb_marshal_dump(sandbox_go_go_go(str), Qnil); 
    593 } 
    594  
    595 /* :nodoc: */ 
    596 VALUE 
    597 sandbox_safe_eval( self, str ) 
    598   VALUE self, str; 
    599 { 
    600   VALUE marshed; 
    601   sandkit *kit; 
    602   Data_Get_Struct( self, sandkit, kit ); 
    603   marshed = sandbox_perform(kit, sandbox_safe_go_go_go, str); 
    604   return rb_marshal_load(marshed); 
    605586} 
    606587 
     
    28302811  rb_define_singleton_method( rb_cSandbox, "current", sandbox_current, 0 ); 
    28312812  rb_cSandboxSafe = rb_define_class_under(rb_cSandbox, "Safe", rb_cSandboxFull); 
    2832   rb_define_method( rb_cSandboxSafe, "_eval", sandbox_safe_eval, 1 ); 
    28332813  rb_eSandboxException = rb_define_class_under(rb_cSandbox, "Exception", rb_eException); 
    28342814  rb_cSandboxRef = rb_define_class_under(rb_cSandbox, "Ref", rb_cObject);