Skip to content

Commit

Permalink
[ruby/csv] Remove no longer required refinements
Browse files Browse the repository at this point in the history
(ruby/csv#250)

Since PR #159, the minimum Ruby version is 2.5.0, a version which no
longer requires refinements for String#delete_suffix?, String#match? and
Regexp#match?.
  • Loading branch information
Maumagnaguagno authored and peterzhu2118 committed Dec 6, 2022
1 parent 9a7b3f0 commit 3417f5e
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 49 deletions.
3 changes: 0 additions & 3 deletions lib/csv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,11 @@

require_relative "csv/fields_converter"
require_relative "csv/input_record_separator"
require_relative "csv/match_p"
require_relative "csv/parser"
require_relative "csv/row"
require_relative "csv/table"
require_relative "csv/writer"

using CSV::MatchP if CSV.const_defined?(:MatchP)

# == \CSV
# \CSV (comma-separated variables) data is a text representation of a table:
# - A _row_ _separator_ delimits table rows.
Expand Down
18 changes: 0 additions & 18 deletions lib/csv/delete_suffix.rb

This file was deleted.

20 changes: 0 additions & 20 deletions lib/csv/match_p.rb

This file was deleted.

5 changes: 0 additions & 5 deletions lib/csv/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,10 @@

require "strscan"

require_relative "delete_suffix"
require_relative "input_record_separator"
require_relative "match_p"
require_relative "row"
require_relative "table"

using CSV::DeleteSuffix if CSV.const_defined?(:DeleteSuffix)
using CSV::MatchP if CSV.const_defined?(:MatchP)

class CSV
# Note: Don't use this class directly. This is an internal class.
class Parser
Expand Down
3 changes: 0 additions & 3 deletions lib/csv/writer.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# frozen_string_literal: true

require_relative "input_record_separator"
require_relative "match_p"
require_relative "row"

using CSV::MatchP if CSV.const_defined?(:MatchP)

class CSV
# Note: Don't use this class directly. This is an internal class.
class Writer
Expand Down

0 comments on commit 3417f5e

Please sign in to comment.