DEV: Remove deprecated Category#url_with_id method (#22582)

This method has been deprecated (replaced by Category#url) and marked for removal in 2.9.0. This PR removes it.
This commit is contained in:
Ted Johansson 2023-07-13 11:21:47 +08:00 committed by GitHub
parent cdfa2b4aa2
commit 6abec9335f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 10 deletions

View File

@ -893,16 +893,6 @@ class Category < ActiveRecord::Base
end
end
def url_with_id
Discourse.deprecate(
"Category#url_with_id is deprecated. Use `Category#url` instead.",
output_in_test: true,
drop_from: "2.9.0",
)
url
end
# If the name changes, try and update the category definition topic too if it's an exact match
def rename_category_definition
return unless topic.present?