From 6125313d69c158b423d1f4aff2e206cfd43a036a Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 2 Jun 2003 04:49:46 +0000 Subject: * array.c (push_values_at): Array#values_at should work with ranges too. * range.c (rb_range_beg_len): length calculation was wrong. * eval.c (rb_call): should set T_ICLASS in the frame->last_class. [ruby-core:01110] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'io.c') diff --git a/io.c b/io.c index 3aceb78cbb..e5504b02da 100644 --- a/io.c +++ b/io.c @@ -2738,15 +2738,6 @@ rb_write_deferr(mesg) rb_write_deferr2(mesg, strlen(mesg)); } -static VALUE -rb_warn_m(self, mesg) - VALUE self, mesg; -{ - rb_io_write(rb_deferr, mesg); - rb_io_write(rb_deferr, rb_default_rs); - return mesg; -} - static void must_respond_to(mid, val, id) ID mid; @@ -4091,6 +4082,4 @@ Init_IO() #ifdef O_SYNC rb_file_const("SYNC", INT2FIX(O_SYNC)); #endif - - rb_define_global_function("warn", rb_warn_m, 1); } -- cgit v1.2.3