A platform for community discussion. Free, open, simple.
DEV: Remove `User` class methods that have been deprecated. (#13612)
Alan Guo Xiang Tanf26acb4b634e
diff --git a/app/models/user.rb b/app/models/user.rbindex a1b9208c28d..6dcd9dd9cdd 100644--- a/app/models/user.rb+++ b/app/models/user.rb@@ -293,21 +293,6 @@ class User < ActiveRecord::Basefields.uniqend- 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 = []