summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2018-11-01 14:14:26 +0800
committerGitHub <noreply@github.com>2018-11-01 14:14:26 +0800
commit6bab41cf1016c3f92ff3927392043350fa7973c9 (patch)
tree3c596b08ca21ab7016baba6ef91a92e0c4db13bd
parentf22a037273c277e64be4b7d0244c3cb58c667588 (diff)
parent9f833763f15e69321ea072045ec940ebc687ab62 (diff)
downloadpry-6bab41cf1016c3f92ff3927392043350fa7973c9.tar.gz
Merge pull request #1837 from pry/source-location-cleanup
command: delete #source_location
-rw-r--r--lib/pry/command.rb6
1 files changed, 0 insertions, 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 == "" ? "#<class(Pry::Command #{match.inspect})>" : super