* transcode.c (load_transcoder): unused function removed.

(rb_transcoding_open): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-08-14 10:42:28 +00:00
Родитель 7db5e184c2
Коммит dd92751104
2 изменённых файлов: 5 добавлений и 34 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Thu Aug 14 19:41:42 2008 Tanaka Akira <akr@fsij.org>
* transcode.c (load_transcoder): unused function removed.
(rb_transcoding_open): ditto.
Thu Aug 14 17:57:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> Thu Aug 14 17:57:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/encoding.h (rb_enc_ispunct): added. * include/ruby/encoding.h (rb_enc_ispunct): added.

Просмотреть файл

@ -270,25 +270,6 @@ load_transcoder_entry(transcoder_entry_t *entry)
return NULL; return NULL;
} }
#if USE_TRANSCODING_OPEN
static const rb_transcoder *
load_transcoder(const char *from, const char *to)
{
transcoder_entry_t *entry;
const rb_transcoder *tr;
entry = get_transcoder_entry(from, to);
if (!entry)
return NULL;
tr = load_transcoder_entry(entry);
if (!tr)
return NULL;
return tr;
}
#endif
static const char* static const char*
get_replacement_character(rb_encoding *enc, int *len_ret) get_replacement_character(rb_encoding *enc, int *len_ret)
{ {
@ -656,21 +637,6 @@ rb_transcoding_open_by_transcoder(const rb_transcoder *tr, int flags)
return tc; return tc;
} }
#if USE_TRANSCODING_OPEN
static rb_transcoding *
rb_transcoding_open(const char *from, const char *to, int flags)
{
rb_transcoding *tc;
const rb_transcoder *tr;
tr = load_transcoder(from, to);
tc = rb_transcoding_open_by_transcoder(tr, flags);
return tc;
}
#endif
static rb_trans_result_t static rb_trans_result_t
rb_transcoding_convert(rb_transcoding *tc, rb_transcoding_convert(rb_transcoding *tc,
const unsigned char **input_ptr, const unsigned char *input_stop, const unsigned char **input_ptr, const unsigned char *input_stop,