From a3e9fcdae04841ac83a35393212d5be8cca7fae0 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 14 Aug 2008 11:56:55 +0000 Subject: * transcode.c (econv_max_output): removed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ transcode.c | 17 ----------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/ChangeLog b/ChangeLog index e769cff5a..662535693 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Aug 14 20:56:28 2008 Tanaka Akira + + * transcode.c (econv_max_output): removed. + Thu Aug 14 20:52:55 2008 Tanaka Akira * tool/transcode-tblgen.rb: check unexpected actions. diff --git a/transcode.c b/transcode.c index 8e2d6d453..7d7932191 100644 --- a/transcode.c +++ b/transcode.c @@ -1611,22 +1611,6 @@ econv_primitive_convert(int argc, VALUE *argv, VALUE self) } } -/* - * call-seq: - * max_output -> int - * - * returns the maximum length of output unit in bytes. - */ -static VALUE -econv_max_output(VALUE self) -{ - rb_econv_t *ts = check_econv(self); - int n; - n = ts->elems[ts->num_trans-1].tc->transcoder->max_output; - - return INT2FIX(n); -} - void Init_transcode(void) { @@ -1648,7 +1632,6 @@ Init_transcode(void) rb_define_method(rb_cEncodingConverter, "initialize", econv_init, -1); rb_define_method(rb_cEncodingConverter, "inspect", econv_inspect, 0); rb_define_method(rb_cEncodingConverter, "primitive_convert", econv_primitive_convert, -1); - rb_define_method(rb_cEncodingConverter, "max_output", econv_max_output, 0); rb_define_const(rb_cEncodingConverter, "PARTIAL_INPUT", INT2FIX(PARTIAL_INPUT)); rb_define_const(rb_cEncodingConverter, "OUTPUT_FOLLOWED_BY_INPUT", INT2FIX(OUTPUT_FOLLOWED_BY_INPUT)); rb_define_const(rb_cEncodingConverter, "UNIVERSAL_NEWLINE_DECODER", INT2FIX(UNIVERSAL_NEWLINE_DECODER)); -- cgit