DEV: Remove old deprecation warnings where constants already removed (#22140)

We renamed these constants 3 years ago. This PR just removes the old deprecation notices.
This commit is contained in:
Ted Johansson 2023-06-16 11:26:26 +08:00 committed by GitHub
parent 9174716737
commit d548231475
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 8 deletions

View File

@ -10,8 +10,6 @@ class TopicLinkClick < ActiveRecord::Base
validates_presence_of :topic_link_id
ALLOWED_REDIRECT_HOSTNAMES = Set.new(%W[www.youtube.com youtu.be])
include ActiveSupport::Deprecation::DeprecatedConstantAccessor
deprecate_constant "WHITELISTED_REDIRECT_HOSTNAMES", "TopicLinkClick::ALLOWED_REDIRECT_HOSTNAMES"
# Create a click from a URL and post_id
def self.create_from(args = {})

View File

@ -39,9 +39,6 @@ class TranslationOverride < ActiveRecord::Base
}
include HasSanitizableFields
include ActiveSupport::Deprecation::DeprecatedConstantAccessor
deprecate_constant "CUSTOM_INTERPOLATION_KEYS_WHITELIST",
"TranslationOverride::ALLOWED_CUSTOM_INTERPOLATION_KEYS"
validates_uniqueness_of :translation_key, scope: :locale
validates_presence_of :locale, :translation_key, :value

View File

@ -31,9 +31,6 @@ class UploadCreator
use
].each(&:freeze)
include ActiveSupport::Deprecation::DeprecatedConstantAccessor
deprecate_constant "WHITELISTED_SVG_ELEMENTS", "UploadCreator::ALLOWED_SVG_ELEMENTS"
# Available options
# - type (string)
# - origin (string)