summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2022-05-23 13:57:40 -0400
committerAaron Patterson <aaron.patterson@gmail.com>2022-05-26 12:09:04 -0700
commit33fdff3c300cbc2e37f1a0819418be313848754d (patch)
tree0fad768f5407ad89c145635c985fd1352c708e04 /include
parentadc709adb8c7fbe83a20b7c9b554856c98346a4b (diff)
Remove unused RMODULE_INCLUDED_INTO_REFINEMENT flag
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5932
Diffstat (limited to 'include')
-rw-r--r--include/ruby/internal/core/rclass.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/include/ruby/internal/core/rclass.h b/include/ruby/internal/core/rclass.h
index 6d450917db..becdae7571 100644
--- a/include/ruby/internal/core/rclass.h
+++ b/include/ruby/internal/core/rclass.h
@@ -27,7 +27,6 @@
/** @cond INTERNAL_MACRO */
#define RMODULE_IS_REFINEMENT RMODULE_IS_REFINEMENT
-#define RMODULE_INCLUDED_INTO_REFINEMENT RMODULE_INCLUDED_INTO_REFINEMENT
/** @endcond */
/**
@@ -60,42 +59,6 @@ enum ruby_rmodule_flags {
* difference between normal inclusion versus refinements.
*/
RMODULE_IS_REFINEMENT = RUBY_FL_USER3,
-
- /**
- * This flag has something to do with refinements. This is set when a
- * (non-refinement) module is included into another module, which is a
- * refinement. This amends the way `super` searches for a super method.
- *
- * ```ruby
- * class Foo
- * def foo
- * "Foo"
- * end
- * end
- *
- * module Bar
- * def foo
- * "[#{super}]" # this
- * end
- * end
- *
- * module Baz
- * refine Foo do
- * include Bar
- * def foo
- * "<#{super}>"
- * end
- * end
- * end
- *
- * using Baz
- * Foo.new.foo # => "[<Foo>]"
- * ```
- *
- * The `super` marked with "this" comment shall look for overlaid
- * `Foo#foo`, which is not the ordinal method lookup direction.
- */
- RMODULE_INCLUDED_INTO_REFINEMENT = RUBY_FL_USER4
};
struct RClass; /* Opaque, declared here for RCLASS() macro. */