mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 20:01:14 +08:00
DEV: Remove deprecated plugins variables importer (#12168)
This commit is contained in:
@ -55,7 +55,6 @@ class DiscoursePluginRegistry
|
||||
define_register :mobile_stylesheets, Hash
|
||||
define_register :desktop_stylesheets, Hash
|
||||
define_register :color_definition_stylesheets, Hash
|
||||
define_register :sass_variables, Set
|
||||
define_register :handlebars, Set
|
||||
define_register :serialized_current_user_fields, Set
|
||||
define_register :seed_data, HashWithIndifferentAccess
|
||||
@ -161,9 +160,6 @@ class DiscoursePluginRegistry
|
||||
self.desktop_stylesheets[plugin_directory_name] << asset
|
||||
elsif opts == :color_definitions
|
||||
self.color_definition_stylesheets[plugin_directory_name] = asset
|
||||
elsif opts == :variables
|
||||
Discourse.deprecate(":variables is deprecated", drop_from: "2.7")
|
||||
self.sass_variables << asset
|
||||
else
|
||||
self.stylesheets[plugin_directory_name] ||= Set.new
|
||||
self.stylesheets[plugin_directory_name] << asset
|
||||
|
Reference in New Issue
Block a user