From d548231475d5d7349c1eae78ecdcba661a51f66f Mon Sep 17 00:00:00 2001 From: Ted Johansson Date: Fri, 16 Jun 2023 11:26:26 +0800 Subject: [PATCH] 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. --- app/models/topic_link_click.rb | 2 -- app/models/translation_override.rb | 3 --- lib/upload_creator.rb | 3 --- 3 files changed, 8 deletions(-) diff --git a/app/models/topic_link_click.rb b/app/models/topic_link_click.rb index 751493dbd54..8dde67f47f0 100644 --- a/app/models/topic_link_click.rb +++ b/app/models/topic_link_click.rb @@ -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 = {}) diff --git a/app/models/translation_override.rb b/app/models/translation_override.rb index 41334c3c24a..00786ba7f20 100644 --- a/app/models/translation_override.rb +++ b/app/models/translation_override.rb @@ -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 diff --git a/lib/upload_creator.rb b/lib/upload_creator.rb index 61ee801420a..54615a1101f 100644 --- a/lib/upload_creator.rb +++ b/lib/upload_creator.rb @@ -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)