RFR: 8301063: Remove dead code from GrowableArray
Christian Hagedorn
chagedorn at openjdk.org
Wed Jan 25 12:33:04 UTC 2023
On Wed, 25 Jan 2023 11:55:26 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:
> While looking for a method to truncate a GrowableArray, I noticed that there are both `trunc_to` and `truncate_to` while the behavior of the latter is confusing. Since it's unused, I propose to remove it (together with `data_size_in_bytes` which is also unused). The `truncate_to` and `truncate_from` methods were added by [JDK-8271515](https://bugs.openjdk.org/browse/JDK-8271515) and were unused right from the beginning. `data_size_in_bytes` was introduced by [JDK-8254231](https://bugs.openjdk.org/browse/JDK-8254231) and became unused after [JDK-8283689](https://bugs.openjdk.org/browse/JDK-8283689).
>
> Thanks,
> Tobias
Looks good and trivial.
-------------
Marked as reviewed by chagedorn (Reviewer).
PR: https://git.openjdk.org/jdk/pull/12191
More information about the hotspot-dev
mailing list