Permalink
Browse files

Remove dead code.

I can't find any syntax that causes this branch to be executed.
  • Loading branch information...
1 parent 23753d0 commit 02d1fd610f0d32937bf64c67fc38309f92c8d7d5 @xaviershay xaviershay committed Mar 31, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/cane/abc_check.rb
@@ -51,11 +51,7 @@ def process_ast(node, complexity = {}, nesting = [])
nesting = nesting + [label_for(node)]
complexity[nesting.join(" > ")] = calculate_abc(node)
elsif container_nodes.include?(node[0])
- parent = if node[1][1][1].is_a?(Symbol)
- node[1][1][1]
- else
- node[1][-1][1]
- end
+ parent = node[1][-1][1]
nesting = nesting + [parent]
end

0 comments on commit 02d1fd6

Please sign in to comment.