From 6429bfa855f390f5fbad4eb6dcc0c76fea7b90da Mon Sep 17 00:00:00 2001 From: Kyrylo Silin Date: Sun, 4 Nov 2018 13:59:06 +0800 Subject: [PATCH] platform: delete #known_engines altogether It turns out this was actually never released so there's nothing to deprecate. --- lib/pry/helpers/base_helpers.rb | 14 -------------- lib/pry/platform.rb | 8 -------- 2 files changed, 22 deletions(-) diff --git a/lib/pry/helpers/base_helpers.rb b/lib/pry/helpers/base_helpers.rb index 0c4108b3..12fa6b27 100644 --- a/lib/pry/helpers/base_helpers.rb +++ b/lib/pry/helpers/base_helpers.rb @@ -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 diff --git a/lib/pry/platform.rb b/lib/pry/platform.rb index 98a86efb..f2c45a1b 100644 --- a/lib/pry/platform.rb +++ b/lib/pry/platform.rb @@ -84,14 +84,6 @@ class Pry def mri_2? !!(mri? and RUBY_VERSION =~ /\A2/) end - - # - # @return [Array] - # 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.