Removed unused methods from DescriptorRendererImpl.

This commit is contained in:
Evgeny Gerashchenko
2012-12-11 21:59:43 +04:00
parent 8a946c6ef9
commit b09050bb18
@@ -108,15 +108,6 @@ public class DescriptorRendererImpl implements Renderer<DeclarationDescriptor> {
};
private final RenderDeclarationDescriptorVisitor rootVisitor = new RenderDeclarationDescriptorVisitor();
private static List<String> getOuterClassesNames(ClassDescriptor cd) {
ArrayList<String> result = new ArrayList<String>();
while (cd.getContainingDeclaration() instanceof ClassifierDescriptor) {
result.add(cd.getName().getName());
cd = (ClassDescriptor) cd.getContainingDeclaration();
}
return result;
}
protected boolean hasDefaultValue(ValueParameterDescriptor descriptor) {
return descriptor.hasDefaultValue();
}
@@ -327,15 +318,6 @@ public class DescriptorRendererImpl implements Renderer<DeclarationDescriptor> {
}
}
public String renderAsObject(@NotNull ClassDescriptor classDescriptor) {
StringBuilder stringBuilder = new StringBuilder();
rootVisitor.renderClassDescriptor(classDescriptor, stringBuilder, "object");
if (shouldRenderDefinedIn()) {
appendDefinedIn(classDescriptor, stringBuilder);
}
return stringBuilder.toString();
}
public String renderMessage(String s) {
return s;
}