mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:53:44 +08:00
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:
parent
46f21104f4
commit
a9a568d112
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user