Skip to content

Commit 974b552

Browse files
committed
Remove unused function
1 parent abd112a commit 974b552

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/erblint-github/linters/custom_helpers.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,6 @@ def counter_correct?(processed_source)
6060
end
6161
end
6262

63-
# Map possible values from condition
64-
def basic_conditional_code_check(code)
65-
conditional_match = code.match(/["'](.+)["']\sif|unless\s.+/) || code.match(/.+\s?\s["'](.+)["']\s:\s["'](.+)["']/)
66-
[conditional_match[1], conditional_match[2]].compact if conditional_match
67-
end
68-
6963
def tags(processed_source)
7064
processed_source.parser.nodes_with_type(:tag).map { |tag_node| BetterHtml::Tree::Tag.from_node(tag_node) }
7165
end

0 commit comments

Comments
 (0)