1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

platform: delete #known_engines altogether

It turns out this was actually never released so there's nothing to deprecate.
This commit is contained in:
Kyrylo Silin 2018-11-04 13:59:06 +08:00
parent 0f452a5c02
commit 6429bfa855
2 changed files with 0 additions and 22 deletions

View file

@ -130,20 +130,6 @@ module Pry::Helpers::BaseHelpers
Pry::Helpers::Platform.mri_2?
end
@known_engines_warn = false
# @deprecated This will be removed in the next release.
def known_engines
unless @known_engines_warn
loc = caller_locations(1..1).first
warn(
"#{loc.path}:#{loc.lineno}: warning: BaseHelpers.#{__method__} is " \
"deprecated and will be removed in the next Pry release"
)
@known_engines_warn = true
end
[:jruby, :mri]
end
def silence_warnings
old_verbose = $VERBOSE
$VERBOSE = nil

View file

@ -84,14 +84,6 @@ class Pry
def mri_2?
!!(mri? and RUBY_VERSION =~ /\A2/)
end
#
# @return [Array<Symbol>]
# Returns an Array of Ruby engines that Pry is known to run on.
#
def known_engines
[:jruby, :mri]
end
end
# Not supported on MRI 2.2 and lower.