RFR: JDK-8267574: Dead code in HtmlStyle/HtmlDocletWriter

Jonathan Gibbons jjg at openjdk.java.net
Tue May 25 15:00:57 UTC 2021


On Tue, 25 May 2021 08:36:13 GMT, Hannes Wallnöfer <hannesw at openjdk.org> wrote:

>> Please review a simple `noreg-cleanup` change to remove some dead code.
>
> src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/stylesheet.css line 580:
> 
>> 578:     display:inline-block;
>> 579: }
>> 580: div.block div.deprecation-comment, div.block div.block span.emphasized-phrase {
> 
> A quick search through the code and generated docs suggests that `emphasized-phrase` is unused as well. Should this also be removed?

Let me investigate a test program  to compare the class names in the style sheet and the members of HtmlStyle, and then decide whether to merge that here or do a separate commit/PR.

-------------

PR: https://git.openjdk.java.net/jdk/pull/4154


More information about the javadoc-dev mailing list