Skip to content

Commit

Permalink
Revert "[ruby/uri] Warn compatibility methods in RFC3986_PARSER"
Browse files Browse the repository at this point in the history
This reverts commit c3becc3.
  • Loading branch information
hsbt committed Aug 8, 2024
1 parent 68ebd56 commit 3da7e44
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/uri/rfc3986_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,19 +147,16 @@ def extract(str, schemes = nil, &block) # :nodoc:

# Compatibility for RFC2396 parser
def make_regexp(schemes = nil) # :nodoc:
warn "URI::RFC3986_PARSER.make_regexp is obsoleted. Use URI::RFC2396_PARSER.make_regexp explicitly.", uplevel: 1 if $VERBOSE
RFC2396_PARSER.make_regexp(schemes)
end

# Compatibility for RFC2396 parser
def escape(str, unsafe = nil) # :nodoc:
warn "URI::RFC3986_PARSER.escape is obsoleted. Use URI::RFC2396_PARSER.escape explicitly.", uplevel: 1 if $VERBOSE
unsafe ? RFC2396_PARSER.escape(str, unsafe) : RFC2396_PARSER.escape(str)
end

# Compatibility for RFC2396 parser
def unescape(str, escaped = nil) # :nodoc:
warn "URI::RFC3986_PARSER.unescape is obsoleted. Use URI::RFC2396_PARSER.unescape explicitly.", uplevel: 1 if $VERBOSE
escaped ? RFC2396_PARSER.unescape(str, escaped) : RFC2396_PARSER.unescape(str)
end

Expand Down

0 comments on commit 3da7e44

Please sign in to comment.