summaryrefslogtreecommitdiffhomepage
path: root/mrblib
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-05-10 13:11:00 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-05-10 13:11:00 +0900
commitadea2ca371e6d986eb794d996c0f6165a2881b9b (patch)
tree0078b89a3c384cfcc80ccc02b8693a5f7d020f27 /mrblib
parente59c6a1100caeed7d656142094d413de6e2752fa (diff)
parent1a00a34cc22604513a95bf39ef81bd6e2239d965 (diff)
downloadmruby-adea2ca371e6d986eb794d996c0f6165a2881b9b.tar.gz
mruby-adea2ca371e6d986eb794d996c0f6165a2881b9b.zip
Merge pull request #2223 from yui-knk/fix-nameerror
Delete unused NameError#new. And add test.
Diffstat (limited to 'mrblib')
-rw-r--r--mrblib/error.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/mrblib/error.rb b/mrblib/error.rb
index 9e5a3daeb..6e8181e9d 100644
--- a/mrblib/error.rb
+++ b/mrblib/error.rb
@@ -40,10 +40,6 @@ end
class NameError < StandardError
attr_accessor :name
- def new(message="NameError", name=nil)
- initialize(message, name)
- end
-
def initialize(message=nil, name=nil)
@name = name
super(message)