Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 4e96d2f

Browse files
authored
Merge pull request #393 from rspec/cleanup
Remove unneeded public/private declarations
2 parents bbd38cd + 92621b1 commit 4e96d2f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/rspec/support/encoded_string.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ def matching_encoding(string)
117117
encode_no_converter(string.dup.force_encoding(@encoding))
118118
end
119119

120-
private
121-
122120
# On Ruby 2.7.0 keyword arguments mixed with conventional cause a warning to
123121
# be issued requiring us to be explicit by using a ** to pass the hash as
124122
# keyword arguments. Any keyword argument supporting Ruby supports this.
@@ -144,8 +142,6 @@ def encode_no_converter(string)
144142
end
145143
end
146144

147-
public
148-
149145
# Prevents raising ArgumentError
150146
if String.method_defined?(:scrub)
151147
# https://github.com/ruby/ruby/blob/eeb05e8c11/doc/NEWS-2.1.0#L120-L123

0 commit comments

Comments
 (0)