DEV: Remove deprecated UrlHelper#escape_uri helper (#24002)

The UrlHelper#escape_uri helper has been deprecated and replaced by UrlHelper#normalized_encode, and was marked for removal in 3.0. This PR removes the method.
This commit is contained in:
Ted Johansson 2023-10-19 10:37:14 +08:00 committed by GitHub
parent b4eb078b0e
commit 47b2667099
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions

View File

@ -66,15 +66,6 @@ class UrlHelper
self.absolute(Upload.secure_uploads_url_from_upload_url(url), nil)
end
def self.escape_uri(uri)
Discourse.deprecate(
"UrlHelper.escape_uri is deprecated. For normalization of user input use `.normalized_encode`. For true encoding, use `.encode`",
output_in_test: true,
drop_from: "3.0",
)
normalized_encode(uri)
end
def self.normalized_encode(uri)
url = uri.to_s