aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debug.rb
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-11 16:59:10 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-11 16:59:10 +0000
commit70510d026f8d86693dccaba07417488eed09b41d (patch)
tree81670e1c01692ae397e7f1f2e4caf646cef34d3c /lib/debug.rb
parentc6820cc3bea5476f605a51e38c1207d266f45ff6 (diff)
downloadruby-70510d026f8d86693dccaba07417488eed09b41d.tar.gz
* lib/csv.rb: Fix unused variable warnings.
Patch by Run Paint [ruby-core:30991] * lib/date.rb: ditto * lib/debug.rb: ditto * lib/drb/drb.rb: ditto * lib/drb/invokemethod.rb: ditto * lib/irb/ruby-lex.rb: ditto * lib/irb/slex.rb: ditto * lib/logger.rb: ditto * lib/pathname.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/debug.rb')
-rw-r--r--lib/debug.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/debug.rb b/lib/debug.rb
index 10236c352d..b97486d236 100644
--- a/lib/debug.rb
+++ b/lib/debug.rb
@@ -125,7 +125,7 @@ class Context
def debug_eval(str, binding)
begin
- val = eval(str, binding)
+ eval(str, binding)
rescue StandardError, ScriptError => e
at = eval("caller(1)", binding)
stdout.printf "%s:%s\n", at.shift, e.to_s.sub(/\(eval\):1:(in `.*?':)?/, '')
@@ -585,7 +585,7 @@ EOHELP
end
def format_frame(pos)
- bind, file, line, id = @frames[pos]
+ _, file, line, id = @frames[pos]
sprintf "#%d %s:%s%s\n", pos + 1, file, line,
(id ? ":in `#{id.id2name}'" : "")
end