mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Remove get_actual_encoding() and the dynamic endian detection for dummy UTF-16/UTF-32
* And simplify callers of get_actual_encoding(). * See [Feature #18949]. * See https://github.com/ruby/ruby/pull/6322#issuecomment-1242758474
This commit is contained in:
parent
ed029e9bd4
commit
6525b6f760
7 changed files with 26 additions and 101 deletions
|
@ -50,7 +50,6 @@ void rb_encdb_declare(const char *name);
|
|||
int rb_encdb_replicate(const char *name, const char *orig);
|
||||
int rb_encdb_dummy(const char *name);
|
||||
int rb_encdb_alias(const char *alias, const char *orig);
|
||||
void rb_encdb_set_unicode(int index);
|
||||
#pragma GCC visibility pop
|
||||
#endif
|
||||
|
||||
|
@ -760,14 +759,6 @@ rb_encdb_alias(const char *alias, const char *orig)
|
|||
return r;
|
||||
}
|
||||
|
||||
void
|
||||
rb_encdb_set_unicode(int index)
|
||||
{
|
||||
rb_raw_encoding *enc = (rb_raw_encoding *)rb_enc_from_index(index);
|
||||
ASSUME(enc);
|
||||
enc->flags |= ONIGENC_FLAG_UNICODE;
|
||||
}
|
||||
|
||||
static void
|
||||
rb_enc_init(struct enc_table *enc_table)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue