diff options
author | Benoit Daloze <eregontp@gmail.com> | 2023-01-06 15:07:39 +0100 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2023-01-11 13:41:41 +0100 |
commit | 6abe20e87b74a5a672dc59f72fa1f550ceab430c (patch) | |
tree | 85ea11a007e23327cfd83e0fb3f29f92767b8ee3 /include | |
parent | d831b1d5cef23593c94d80240b836fd2038aa685 (diff) | |
download | ruby-6abe20e87b74a5a672dc59f72fa1f550ceab430c.tar.gz |
Remove Encoding#replicate
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/internal/encoding/encoding.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/include/ruby/internal/encoding/encoding.h b/include/ruby/internal/encoding/encoding.h index 4748ca806b..dc3e0151f0 100644 --- a/include/ruby/internal/encoding/encoding.h +++ b/include/ruby/internal/encoding/encoding.h @@ -139,23 +139,6 @@ RBIMPL_ATTR_NOALIAS() int rb_char_to_option_kcode(int c, int *option, int *kcode); /** - * Creates a new encoding, using the passed one as a template. - * - * @param[in] name Name of the creating encoding. - * @param[in] src Template. - * @exception rb_eArgError Duplicated or malformed `name`. - * @return Replicated new encoding's index. - * @post Encoding named `name` is created as a copy of `src`, whose index - * is the return value. - * - * @internal - * - * `name` can be `NULL`, but that just raises an exception. OTOH it seems no - * sanity check is done against `src`...? - */ -int rb_enc_replicate(const char *name, rb_encoding *src); - -/** * Creates a new "dummy" encoding. Roughly speaking, an encoding is dummy when * it is stateful. Notable example of dummy encoding are those defined in * ISO/IEC 2022 |