lib/scss_lint/utils.rb in scss-lint-0.23.1 vs lib/scss_lint/utils.rb in scss-lint-0.24.0
- old
+ new
@@ -18,20 +18,9 @@
selector_array.reject { |item| item.is_a? Sass::Script::Node }
.join
.split
end
- def shortest_hex_form(hex)
- (can_be_condensed?(hex) ? (hex[0..1] + hex[3] + hex[5]) : hex).downcase
- end
-
- def can_be_condensed?(hex)
- hex.length == 7 &&
- hex[1] == hex[2] &&
- hex[3] == hex[4] &&
- hex[5] == hex[6]
- end
-
# Takes a string like `hello "world" 'how are' you` and turns it into:
# `hello you`.
# This is useful for scanning for keywords in shorthand properties or lists
# which can contain quoted strings but for which you don't want to inspect
# quoted strings (e.g. you care about the actual color keyword `red`, not