From f26acb4b634e148bf0c1f1dfc158859329e4beae Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Mon, 5 Jul 2021 10:44:53 +0800 Subject: [PATCH] DEV: Remove `User` class methods that have been deprecated. (#13612) --- app/models/user.rb | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index a1b9208c28d..6dcd9dd9cdd 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -293,21 +293,6 @@ class User < ActiveRecord::Base fields.uniq end - def self.register_plugin_editable_user_custom_field(custom_field_name, plugin, staff_only: false) - Discourse.deprecate("Editable user custom fields should be registered using the plugin API", since: "v2.4.0.beta4", drop_from: "v2.5.0") - DiscoursePluginRegistry.register_editable_user_custom_field(custom_field_name, plugin, staff_only: staff_only) - end - - def self.register_plugin_staff_custom_field(custom_field_name, plugin) - Discourse.deprecate("Staff user custom fields should be registered using the plugin API", since: "v2.4.0.beta4", drop_from: "v2.5.0") - DiscoursePluginRegistry.register_staff_user_custom_field(custom_field_name, plugin) - end - - def self.register_plugin_public_custom_field(custom_field_name, plugin) - Discourse.deprecate("Public user custom fields should be registered using the plugin API", since: "v2.4.0.beta4", drop_from: "v2.5.0") - DiscoursePluginRegistry.register_public_user_custom_field(custom_field_name, plugin) - end - def self.allowed_user_custom_fields(guardian) fields = []