Remove various getClassId methods

This commit is contained in:
Pavel V. Talanov
2013-07-01 20:02:15 +04:00
committed by Alexander Udalov
parent fa93ee7ff2
commit c3a44e37ba
7 changed files with 3 additions and 44 deletions
@@ -83,9 +83,6 @@ public abstract class AbstractClassResolver implements ClassResolver {
@NotNull
protected abstract DeclarationDescriptor getPackage(@NotNull FqName fqName);
@NotNull
protected abstract ClassId getClassId(@NotNull ClassDescriptor classDescriptor);
@Nullable
protected ClassDescriptor resolveClassExternally(@NotNull ClassId classId) {
//TODO: decide whether it is ok to provide default implementation
@@ -2,8 +2,6 @@ package org.jetbrains.jet.lang.types.lang;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.jet.descriptors.serialization.ClassId;
import org.jetbrains.jet.descriptors.serialization.ClassSerializationUtil;
import org.jetbrains.jet.lang.descriptors.ClassDescriptor;
import org.jetbrains.jet.lang.descriptors.NamespaceDescriptor;
import org.jetbrains.jet.lang.resolve.DescriptorUtils;
import org.jetbrains.jet.lang.resolve.name.FqName;
@@ -45,11 +43,6 @@ public class BuiltInsSerializationUtil {
+ "." + CLASS_METADATA_FILE_EXTENSION;
}
@NotNull
public static ClassId getClassId(@NotNull ClassDescriptor classDescriptor) {
return ClassSerializationUtil.getClassId(classDescriptor);
}
@NotNull
public static String getPackageFilePath(@NotNull NamespaceDescriptor packageDescriptor) {
FqNameUnsafe fqName = DescriptorUtils.getFQName(packageDescriptor);
@@ -74,12 +74,6 @@ class BuiltinsNamespaceDescriptorImpl extends AbstractNamespaceDescriptorImpl {
return BuiltinsNamespaceDescriptorImpl.this;
}
@NotNull
@Override
protected ClassId getClassId(@NotNull ClassDescriptor classDescriptor) {
return BuiltInsSerializationUtil.getClassId(classDescriptor);
}
@Override
protected void classDescriptorCreated(@NotNull ClassDescriptor classDescriptor) {
// Do nothing