Minor: remove some dead code

This commit is contained in:
Pavel V. Talanov
2016-02-04 16:30:58 +03:00
parent 909ced5fa2
commit f59a4c537e
4 changed files with 5 additions and 26 deletions
@@ -76,10 +76,6 @@ class CliLightClassGenerationSupport(project: Project) : LightClassGenerationSup
trace.setKotlinCodeAnalyzer(codeAnalyzer)
}
override fun getContextForPackage(files: Collection<KtFile>): LightClassConstructionContext {
return LightClassConstructionContext(bindingContext, module)
}
override fun getContextForClassOrObject(classOrObject: KtClassOrObject): LightClassConstructionContext {
//force resolve companion for light class generation
bindingContext.get(BindingContext.CLASS, classOrObject)?.companionObjectDescriptor
@@ -49,10 +49,6 @@ object PackagePartClassUtils {
else
"_$str"
@TestOnly
@JvmStatic fun getDefaultFileClassFqName(packageFqName: FqName, file: VirtualFile): FqName =
getPackagePartFqName(packageFqName, file.name)
@TestOnly
@JvmStatic fun getDefaultPartFqName(facadeClassFqName: FqName, file: VirtualFile): FqName =
getPackagePartFqName(facadeClassFqName.parent(), file.name)
@@ -36,9 +36,6 @@ public abstract class LightClassGenerationSupport {
return ServiceManager.getService(project, LightClassGenerationSupport.class);
}
@NotNull
public abstract LightClassConstructionContext getContextForPackage(@NotNull Collection<KtFile> files);
@NotNull
public abstract LightClassConstructionContext getContextForClassOrObject(@NotNull KtClassOrObject classOrObject);