Unused method removed
This commit is contained in:
@@ -236,7 +236,8 @@ public class CodegenBinding {
|
|||||||
registerClassNameForScript(bindingTrace, descriptor, className);
|
registerClassNameForScript(bindingTrace, descriptor, className);
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull public static Collection<JetFile> allFilesInNamespaces(BindingContext bindingContext, Collection<JetFile> files) {
|
@NotNull
|
||||||
|
public static Collection<JetFile> allFilesInNamespaces(BindingContext bindingContext, Collection<JetFile> files) {
|
||||||
// todo: we use Set and add given files but ignoring other scripts because something non-clear kept in binding
|
// todo: we use Set and add given files but ignoring other scripts because something non-clear kept in binding
|
||||||
// for scripts especially in case of REPL
|
// for scripts especially in case of REPL
|
||||||
|
|
||||||
@@ -275,12 +276,6 @@ public class CodegenBinding {
|
|||||||
return sortedAnswer;
|
return sortedAnswer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isMultiFileNamespace(BindingContext bindingContext, FqName fqName) {
|
|
||||||
NamespaceDescriptor namespaceDescriptor = bindingContext.get(BindingContext.FQNAME_TO_NAMESPACE_DESCRIPTOR, fqName);
|
|
||||||
Collection<JetFile> jetFiles = bindingContext.get(NAMESPACE_TO_FILES, namespaceDescriptor);
|
|
||||||
return jetFiles != null && jetFiles.size() > 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean isObjectLiteral(BindingContext bindingContext, ClassDescriptor declaration) {
|
public static boolean isObjectLiteral(BindingContext bindingContext, ClassDescriptor declaration) {
|
||||||
PsiElement psiElement = descriptorToDeclaration(bindingContext, declaration);
|
PsiElement psiElement = descriptorToDeclaration(bindingContext, declaration);
|
||||||
if (psiElement instanceof JetObjectDeclaration && ((JetObjectDeclaration) psiElement).isObjectLiteral()) {
|
if (psiElement instanceof JetObjectDeclaration && ((JetObjectDeclaration) psiElement).isObjectLiteral()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user