summaryrefslogtreecommitdiff
path: root/lib/e2mmap.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-09 00:49:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-09 00:49:05 +0000
commit258cbd5e4f760e3fe626cde29ed897df4a95e478 (patch)
tree575edab1f0404619d92b1f58ad9acb12071f0990 /lib/e2mmap.rb
parente7209358b946493310abc3c4178b945b26b80bcf (diff)
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/e2mmap.rb')
-rw-r--r--lib/e2mmap.rb1
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)