diff options
author | Douglas Eichelberger <dduugg@gmail.com> | 2022-09-12 10:01:21 -0700 |
---|---|---|
committer | Douglas Eichelberger <dduugg@gmail.com> | 2023-01-01 11:11:16 -0800 |
commit | 313bf4d701961160a29c9147fb89138c0afce11d (patch) | |
tree | e184344a34ffb1edc1d64d237eb925ff7faeb3c2 /lib | |
parent | ee81361936cb9b2241ef5947ec4a269e1326a5fe (diff) | |
download | pry-313bf4d701961160a29c9147fb89138c0afce11d.tar.gz |
Clean up MRI 1.9 code
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pry/helpers/platform.rb | 5 | ||||
-rw-r--r-- | lib/pry/repl.rb | 6 |
2 files changed, 0 insertions, 11 deletions
diff --git a/lib/pry/helpers/platform.rb b/lib/pry/helpers/platform.rb index 3af4d3f7..632e71d4 100644 --- a/lib/pry/helpers/platform.rb +++ b/lib/pry/helpers/platform.rb @@ -47,11 +47,6 @@ class Pry end # @return [Boolean] - def self.mri_19? - mri? && RUBY_VERSION.start_with?('1.9') - end - - # @return [Boolean] def self.mri_2? mri? && RUBY_VERSION.start_with?('2') end diff --git a/lib/pry/repl.rb b/lib/pry/repl.rb index ba032c7f..c5550bc9 100644 --- a/lib/pry/repl.rb +++ b/lib/pry/repl.rb @@ -140,12 +140,6 @@ class Pry should_retry = false retry - # Handle <Ctrl+C> like Bash: empty the current input buffer, but don't - # quit. This is only for MRI 1.9; other versions of Ruby don't let you - # send Interrupt from within Readline. - rescue Interrupt - return :control_c - # If we get a random error when trying to read a line we don't want to # automatically retry, as the user will see a lot of error messages # scroll past and be unable to do anything about it. |