Got rid of code depending on Unit aliasing.

This commit is contained in:
Evgeny Gerashchenko
2013-03-19 16:47:47 +04:00
parent 66e7a0110c
commit f181907b9c
9 changed files with 7 additions and 39 deletions
@@ -95,11 +95,6 @@ public class TypeTransformingVisitor extends JetVisitor<JetType, Void> {
String shortName = type.getReferenceExpression().getReferencedName();
String longName = (qualifier == null ? "" : qualifier.getText() + ".") + shortName;
// TODO remove this code when Unit will be not a synonym for Tuple0
if (KotlinBuiltIns.UNIT_ALIAS.getName().equals(longName)) {
return visitCommonType(KotlinBuiltIns.getInstance().getUnit(), type);
}
return visitCommonType(longName, type);
}