got rid of unused variable to remove warning from 1.9.3

This commit is contained in:
John Mair 2011-09-06 16:32:16 +12:00
parent 100c9ab9ee
commit 1758d8480d
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class Pry
stack.push(Pry.binding_for(stack.last.eval(context))) stack.push(Pry.binding_for(stack.last.eval(context)))
end end
rescue RescuableException => e rescue RescuableException
output.puts "Bad object path: #{arg_string}. Failed trying to resolve: #{context}" output.puts "Bad object path: #{arg_string}. Failed trying to resolve: #{context}"
resolve_failure = true resolve_failure = true
end end
@ -147,6 +147,7 @@ class Pry
set_file_and_dir_locals(file) set_file_and_dir_locals(file)
output.puts "\n#{text.bold('From:')} #{file} @ line #{line_num} in #{klass}##{meth_name}:\n\n" output.puts "\n#{text.bold('From:')} #{file} @ line #{line_num} in #{klass}##{meth_name}:\n\n"
# This method inspired by http://rubygems.org/gems/ir_b # This method inspired by http://rubygems.org/gems/ir_b
File.open(file).each_with_index do |line, index| File.open(file).each_with_index do |line, index|
line_n = index + 1 line_n = index + 1