Skip to content

Commit

Permalink
Remove dead tag_definition method
Browse files Browse the repository at this point in the history
This was last used in 7531264.

Change-Id: Ifd4b05a8bddd6addfed9b39e28c8861f7f88fc9b
Reviewed-on: http://gerrit.causes.com/42569
Tested-by: jenkins <[email protected]>
Reviewed-by: Shane da Silva <[email protected]>
  • Loading branch information
sds committed Sep 14, 2014
1 parent b032930 commit 226d9ac
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/haml_lint/linter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,5 @@ def tag_with_inline_text(tag_node)
line.strip.gsub(/\|\z/, '').rstrip
end.join(' ')
end

# Extracts just the tag definition from a tag node.
#
# For example, it will extract `%tag.class#id` from
# `%tag.class#id{ attr: 'something' } Some inline content`.
def tag_definition(tag_node)
parser.lines[tag_node.line - 1][/\s*([^{( $]+)/, 1]
end
end
end

0 comments on commit 226d9ac

Please sign in to comment.