RFR: 8301063: Remove dead code from GrowableArray
Tobias Hartmann
thartmann at openjdk.org
Wed Jan 25 15:39:21 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
Thanks for the review, Christian!
-------------
PR: https://git.openjdk.org/jdk/pull/12191
More information about the hotspot-dev
mailing list