aboutsummaryrefslogtreecommitdiffstats
path: root/encoding.c
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2022-09-10 19:15:49 +0200
committerBenoit Daloze <eregontp@gmail.com>2022-09-12 14:02:34 +0200
commit6525b6f760ccd9612c9546b0313ab1c7e4af5e66 (patch)
tree5ebdea9a640cfe89051bdb21b99042f4f0ea2c48 /encoding.c
parented029e9bd42d7749fe22007e33c0f61d1dd3d792 (diff)
downloadruby-6525b6f760ccd9612c9546b0313ab1c7e4af5e66.tar.gz
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
Diffstat (limited to 'encoding.c')
-rw-r--r--encoding.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/encoding.c b/encoding.c
index 5c4dfad3f0..b8e7f790b8 100644
--- a/encoding.c
+++ b/encoding.c
@@ -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)
{