From 3ad8e1fbde4d9ac85cbc7e8cc52dc6f8fe46a5d6 Mon Sep 17 00:00:00 2001 From: Ted Johansson Date: Fri, 27 Oct 2023 10:02:14 +0800 Subject: [PATCH] DEV: Remove deprecated PostAction.remove_act method (#24126) The PostAction.remove_act class method has been deprecated and replaced by PostActionDestroyer. It was marked for removal in version 2.9.0. This PR removes the method. --- app/models/post_action.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/models/post_action.rb b/app/models/post_action.rb index 1d0e2bc7875..d0bd68595bf 100644 --- a/app/models/post_action.rb +++ b/app/models/post_action.rb @@ -136,16 +136,6 @@ class PostAction < ActiveRecord::Base target_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