DEV: Remove warning for discontinued site_setting_saved event (#22735)

We used to have a deprecation warning here for the now defunct site_setting_saved event, marked for removal in 2.4. This PR deletes it.
This commit is contained in:
Ted Johansson 2023-07-21 12:22:18 +08:00 committed by GitHub
parent 46f21104f4
commit a9a568d112
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,15 +13,6 @@ class DiscourseEvent
end
def self.on(event_name, &block)
if event_name == :site_setting_saved
Discourse.deprecate(
"The :site_setting_saved event is deprecated. Please use :site_setting_changed instead",
since: "2.3.0beta8",
drop_from: "2.4",
raise_error: true,
)
end
if event_name == :user_badge_removed
Discourse.deprecate(
"The :user_badge_removed event is deprecated. Please use :user_badge_revoked instead",