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:
parent
0f452a5c02
commit
6429bfa855
2 changed files with 0 additions and 22 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue