lib/sass/tree/rule_node.rb in sass-3.1.0.alpha.47 vs lib/sass/tree/rule_node.rb in sass-3.1.0.alpha.48
- old
+ new
@@ -223,21 +223,9 @@
# It's possible for resolved_rules to be set if we've duplicated this node during @media bubbling
self.resolved_rules ||= @parsed_rules.resolve_parent_refs(parent && parent.resolved_rules)
super
end
- # Returns an error message if the given child node is invalid,
- # and false otherwise.
- #
- # {ExtendNode}s are valid within {RuleNode}s.
- #
- # @param child [Tree::Node] A potential child node.
- # @return [Boolean, String] Whether or not the child node is valid,
- # as well as the error message to display if it is invalid
- def invalid_child?(child)
- super unless child.is_a?(ExtendNode)
- end
-
# A hash that will be associated with this rule in the CSS document
# if the {file:SASS_REFERENCE.md#debug_info-option `:debug_info` option} is enabled.
# This data is used by e.g. [the FireSass Firebug extension](https://addons.mozilla.org/en-US/firefox/addon/103988).
#
# @return [{#to_s => #to_s}]