remove useless field in JavaNamespaceDescriptor

This commit is contained in:
Stepan Koltsov
2012-04-08 23:23:59 +04:00
parent ee24554e28
commit b0325f14ef
2 changed files with 4 additions and 13 deletions
@@ -907,8 +907,7 @@ public class JavaDescriptorResolver {
(NamespaceDescriptorParent) resolveParentDescriptor(psiPackage),
Collections.<AnnotationDescriptor>emptyList(), // TODO
name == null ? JAVA_ROOT : name,
fqName,
true
fqName
);
trace.record(BindingContext.NAMESPACE, psiPackage, namespaceDescriptor);
@@ -997,8 +996,7 @@ public class JavaDescriptorResolver {
resolveNamespace(fqName.parent(), DescriptorSearchRule.INCLUDE_KOTLIN),
Collections.<AnnotationDescriptor>emptyList(), // TODO
psiClass.getName(),
fqName,
false
fqName
);
ResolverNamespaceData scopeData = createNamespaceResolverScopeData(fqName, ns);
@@ -32,14 +32,11 @@ import java.util.List;
public class JavaNamespaceDescriptor extends AbstractNamespaceDescriptorImpl {
private JetScope memberScope;
private final FqName qualifiedName;
/** Namespace of class with static methods */
private final boolean namespace;
public JavaNamespaceDescriptor(NamespaceDescriptorParent containingDeclaration, List<AnnotationDescriptor> annotations,
@NotNull String name, @NotNull FqName qualifiedName, boolean namespace) {
@NotNull String name, @NotNull FqName qualifiedName) {
super(containingDeclaration, annotations, name);
this.qualifiedName = qualifiedName;
this.namespace = namespace;
}
public void setMemberScope(@NotNull JetScope memberScope) {
@@ -55,8 +52,4 @@ public class JavaNamespaceDescriptor extends AbstractNamespaceDescriptorImpl {
public FqName getQualifiedName() {
return qualifiedName;
}
public boolean isNamespace() {
return namespace;
}
}