A platform for community discussion. Free, open, simple.
DEV: Remove deprecated PostAction.remove_act method (#24126)
Ted Johansson3ad8e1fbde4d
diff --git a/app/models/post_action.rb b/app/models/post_action.rbindex 1d0e2bc7875..d0bd68595bf 100644--- a/app/models/post_action.rb+++ b/app/models/post_action.rb@@ -136,16 +136,6 @@ class PostAction < ActiveRecord::Basetarget_post.post_actions.each { |post_action| post_action.update_counters }end- def self.remove_act(user, post, post_action_type_id)- Discourse.deprecate(- "PostAction.remove_act is deprecated. Use `PostActionDestroyer` instead.",- output_in_test: true,- drop_from: "2.9.0",- )-- PostActionDestroyer.new(user, post, post_action_type_id).perform- end-def remove_act!(user)trash!(user)# NOTE: save is called to ensure all callbacks are called