summaryrefslogtreecommitdiff
path: root/lib/irb/command.rb
diff options
context:
space:
mode:
authorStan Lo <[email protected]>2024-04-21 02:55:51 +0800
committergit <[email protected]>2024-04-20 18:55:54 +0000
commitf16c6ac4fdbc619ba2f9d3dd7cd3b06c736aa589 (patch)
tree65ef479031e21b6f9741053c99e51fdd09ae3709 /lib/irb/command.rb
parent2b11bcb84ec0e9326ce03a2ec8f0ed2ee349d3c1 (diff)
[ruby/irb] Stop using ExtendCommandBundle internally
(https://github.com/ruby/irb/pull/925) This module was used to extend both commands and helpers when they're not separated. Now that they are, and we have a Command module, we should move command-related logic to the Command module and update related references. This will make the code easier to understand and refactor in the future. https://github.com/ruby/irb/commit/f74ec97236
Diffstat (limited to 'lib/irb/command.rb')
-rw-r--r--lib/irb/command.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/irb/command.rb b/lib/irb/command.rb
index 19fde56356..f4dd3b2b48 100644
--- a/lib/irb/command.rb
+++ b/lib/irb/command.rb
@@ -18,12 +18,6 @@ module IRB # :nodoc:
def register(name, command_class)
@commands[name] = [command_class, []]
end
-
- # This API is for IRB's internal use only and may change at any time.
- # Please do NOT use it.
- def _register_with_aliases(name, command_class, *aliases)
- @commands[name] = [command_class, aliases]
- end
end
end
end