mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
e2mmap.rb: remove legacy code
* lib/e2mmap.rb (Exception2MessageMapper::E2MM.def_exception): remove legacy code. Symbol is no longer a number already. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e7209358b9
commit
258cbd5e4f
1 changed files with 0 additions and 1 deletions
|
@ -128,7 +128,6 @@ module Exception2MessageMapper
|
|||
# define exception named ``c'' with message m.
|
||||
#
|
||||
def E2MM.def_exception(k, n, m, s = StandardError)
|
||||
n = n.id2name if n.kind_of?(Fixnum)
|
||||
e = Class.new(s)
|
||||
E2MM.instance_eval{@MessageMap[[k, e]] = m}
|
||||
k.const_set(n, e)
|
||||
|
|
Loading…
Add table
Reference in a new issue