mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-03 15:08:24 +00:00
8301063: Remove dead code from GrowableArray
Reviewed-by: chagedorn, kvn
This commit is contained in:
parent
b5a4744f90
commit
252621d4e0
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user