From 9f833763f15e69321ea072045ec940ebc687ab62 Mon Sep 17 00:00:00 2001 From: Kyrylo Silin Date: Thu, 1 Nov 2018 14:12:12 +0800 Subject: [PATCH] command: delete #source_location This method doesn't seem to be used anywhere, so there's no benefit in keeping it. --- lib/pry/command.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/pry/command.rb b/lib/pry/command.rb index 5abd5555..40abbd99 100644 --- a/lib/pry/command.rb +++ b/lib/pry/command.rb @@ -68,10 +68,6 @@ class Pry new.help end - def source_location - block.source_location - end - def source_file Array(block.source_location).first end @@ -111,8 +107,6 @@ class Pry def source; self.class.source; end - def source_location; self.class.source_location; end - class << self def name super.to_s == "" ? "#" : super