Skip to content

Commit 5994c3c

Browse files
committed
chore: Removed depreciated methods ref: issues/190
1 parent ad25ff2 commit 5994c3c

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

lib/rails-html-sanitizer.rb

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,6 @@ def sanitized_allowed_tags=(tags)
3434
def sanitized_allowed_attributes=(attributes)
3535
sanitizer_vendor.safe_list_sanitizer.allowed_attributes = attributes
3636
end
37-
38-
[:protocol_separator,
39-
:uri_attributes,
40-
:bad_tags,
41-
:allowed_css_properties,
42-
:allowed_css_keywords,
43-
:shorthand_css_properties,
44-
:allowed_protocols].each do |meth|
45-
meth_name = "sanitized_#{meth}"
46-
47-
define_method(meth_name) { deprecate_option(meth_name) }
48-
define_method("#{meth_name}=") { |_| deprecate_option("#{meth_name}=") }
49-
end
50-
51-
private
52-
def deprecate_option(name)
53-
ActiveSupport::Deprecation.warn "The #{name} option is deprecated " \
54-
"and has no effect. Until Rails 5 the old behavior can still be " \
55-
"installed. To do this add the `rails-deprecated-sanitizer` to " \
56-
"your Gemfile. Consult the Rails 4.2 upgrade guide for more information."
57-
end
5837
end
5938
end
6039
end

0 commit comments

Comments
 (0)