Skip to content

Commit 594d454

Browse files
committedMay 25, 2021
8267574: Dead code in HtmlStyle/HtmlDocletWriter
Reviewed-by: hannesw
1 parent 2ef2450 commit 594d454

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed
 

‎src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HtmlDocletWriter.java

-7
Original file line numberDiff line numberDiff line change
@@ -690,13 +690,6 @@ public Content getModuleLink(ModuleElement mdle, Content label) {
690690
return label;
691691
}
692692

693-
public Content interfaceName(TypeElement typeElement, boolean qual) {
694-
Content name = Text.of((qual)
695-
? typeElement.getQualifiedName()
696-
: utils.getSimpleName(typeElement));
697-
return (utils.isInterface(typeElement)) ? HtmlTree.SPAN(HtmlStyle.interfaceName, name) : name;
698-
}
699-
700693
/**
701694
* Add the link to the content tree.
702695
*

‎src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlStyle.java

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ public enum HtmlStyle {
6262
index,
6363
inheritance,
6464
inheritedList,
65-
interfaceName,
6665
legalCopy,
6766
memberNameLabel,
6867
memberNameLink,

‎src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/stylesheet.css

+2-3
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ h1.hidden {
552552
.package-hierarchy-label, .type-name-label, .type-name-link, .search-tag-link, .preview-label {
553553
font-weight:bold;
554554
}
555-
.deprecation-comment, .help-footnote, .interface-name, .preview-comment {
555+
.deprecation-comment, .help-footnote, .preview-comment {
556556
font-style:italic;
557557
}
558558
.deprecation-block {
@@ -577,8 +577,7 @@ h1.hidden {
577577
margin-right:10px;
578578
display:inline-block;
579579
}
580-
div.block div.deprecation-comment, div.block div.block span.emphasized-phrase,
581-
div.block div.block span.interface-name {
580+
div.block div.deprecation-comment {
582581
font-style:normal;
583582
}
584583
/*

0 commit comments

Comments
 (0)
Please sign in to comment.