From c2b9d34f6266eb813de7e07f86573c26d28b5636 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 16 Oct 2008 16:26:53 +0000 Subject: * transcode.c (transcode_restartable0): in_pos and out_pos never be NULL, now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- transcode.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'transcode.c') diff --git a/transcode.c b/transcode.c index 6ef3544469..5031d49989 100644 --- a/transcode.c +++ b/transcode.c @@ -437,19 +437,6 @@ transcode_restartable0(const unsigned char **in_pos, unsigned char **out_pos, unsigned char *out_p; - unsigned char empty_buf; - unsigned char *empty_ptr = &empty_buf; - - if (!in_pos) { - in_pos = (const unsigned char **)&empty_ptr; - in_stop = empty_ptr; - } - - if (!out_pos) { - out_pos = &empty_ptr; - out_stop = empty_ptr; - } - in_p = inchar_start = *in_pos; out_p = *out_pos; -- cgit v1.2.3