From 252621d4e0c656b160bf41cbf413fb7c7ee1daaf Mon Sep 17 00:00:00 2001 From: Tobias Hartmann Date: Thu, 26 Jan 2023 06:30:37 +0000 Subject: [PATCH] 8301063: Remove dead code from GrowableArray Reviewed-by: chagedorn, kvn --- src/hotspot/share/utilities/growableArray.hpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/hotspot/share/utilities/growableArray.hpp b/src/hotspot/share/utilities/growableArray.hpp index 68374c516dd..4cc77b40708 100644 --- a/src/hotspot/share/utilities/growableArray.hpp +++ b/src/hotspot/share/utilities/growableArray.hpp @@ -320,21 +320,6 @@ public: return min; } - void truncate_to(int idx) { - for (int i = 0, j = idx; j < length(); i++, j++) { - at_put(i, at(j)); - } - trunc_to(length() - idx); - } - - void truncate_from(int idx) { - trunc_to(idx); - } - - size_t data_size_in_bytes() const { - return _len * sizeof(E); - } - void print() const { tty->print("Growable Array " PTR_FORMAT, p2i(this)); tty->print(": length %d (capacity %d) { ", _len, _capacity);