Skip to content

Commit

Permalink
Merge pull request #2257 from dduugg/rm-mri-19-cruft
Browse files Browse the repository at this point in the history
Clean up MRI 1.9 code
  • Loading branch information
andrehjr committed Jan 1, 2023
2 parents ee81361 + cdc2b9e commit 468cf20
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ RUN wget --no-check-certificate -O ruby-install-0.4.3.tar.gz https://github.com/
RUN tar -xzvf ruby-install-0.4.3.tar.gz
RUN cd ruby-install-0.4.3 && make install

RUN ruby-install ruby 1.9.3
RUN ruby-install ruby 2.1.1
RUN ruby-install ruby 2.1.2

Expand Down
5 changes: 0 additions & 5 deletions lib/pry/helpers/platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@ def self.mri?
RbConfig::CONFIG['ruby_install_name'] == 'ruby'
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')
Expand Down
3 changes: 1 addition & 2 deletions lib/pry/repl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ def handle_read_errors
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.
# quit.
rescue Interrupt
return :control_c

Expand Down

0 comments on commit 468cf20

Please sign in to comment.