diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-09 00:49:05 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-09 00:49:05 +0000 |
commit | 59a85cb390d2d802d4949970235a854d4a1ee631 (patch) | |
tree | 575edab1f0404619d92b1f58ad9acb12071f0990 /lib | |
parent | 92feb0f1e95467b71131dd016d9b34e131716069 (diff) | |
download | ruby-59a85cb390d2d802d4949970235a854d4a1ee631.tar.gz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/e2mmap.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/e2mmap.rb b/lib/e2mmap.rb index a9990b5ec5..bbff4f8c2e 100644 --- a/lib/e2mmap.rb +++ b/lib/e2mmap.rb @@ -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) |