Permalink
Browse files

Removed "worst code in Kotlin project".

Nothing changed after removing.
  • Loading branch information...
1 parent ce86f27 commit 6e623c57e1cdc1b6b5c70ffc59e8171d284606cb Evgeny Gerashchenko committed Mar 19, 2013
@@ -31,8 +31,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
public abstract class JetTypeJetSignatureReader extends JetSignatureExceptionsAdapter {
@@ -112,18 +110,6 @@ private ClassDescriptor resolveClassDescriptorByFqName(FqName ourName, boolean f
}
}
- // TODO: this is the worst code in Kotlin project
- Matcher functionMatcher = Pattern.compile("jet\\.Function(\\d+)").matcher(ourName.getFqName());
- if (functionMatcher.matches()) {
- return KotlinBuiltIns.getInstance().getFunction(Integer.parseInt(functionMatcher.group(1)));
- }
-
- Matcher patternMatcher = Pattern.compile("jet\\.Tuple(\\d+)").matcher(ourName.getFqName());
- if (patternMatcher.matches()) {
- return KotlinBuiltIns.getInstance().getTuple(Integer.parseInt(patternMatcher.group(1)));
- }
-
-
return javaDescriptorResolver.resolveClass(ourName, DescriptorSearchRule.INCLUDE_KOTLIN);
}

0 comments on commit 6e623c5

Please sign in to comment.