Skip to content

Commit

Permalink
Merge pull request #2199 from michaellilltokiwa/remove-unused-method-…
Browse files Browse the repository at this point in the history
…depth

remove unused method `Clazz.depth`
  • Loading branch information
fridis authored Nov 3, 2023
2 parents bc589da + 6dd92ec commit d81dfa0
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/dev/flang/air/Clazz.java
Original file line number Diff line number Diff line change
Expand Up @@ -2092,22 +2092,6 @@ public Clazz resultClazz()
}


/**
* Determine the nesting level of a given feature f. The nesting level is 0
* for the universe, 1 for any feature declared in the universe, and
* depth(f.outer())+1 for all the rest.
*/
private int depth(AbstractFeature f)
{
if (CHECKS) check
(Errors.any() || f.isUniverse() || f.outer() != null);

return f.isUniverse() || (f.outer() == null)
? 0
: depth(f.outer()) + 1;
}


/**
* For a type clazz such as 'i32.type' return its name, such as 'i32'.
*/
Expand Down

0 comments on commit d81dfa0

Please sign in to comment.