8263852: Unused method SoftRefPolicy::use_should_clear_all_soft_refs

Reviewed-by: tschatzl
This commit is contained in:
Albert Mingkun Yang 2021-03-19 12:13:59 +00:00
parent 57497ab0ca
commit 1572f3ccdd
2 changed files with 1 additions and 9 deletions

View File

@ -30,12 +30,6 @@ SoftRefPolicy::SoftRefPolicy() :
_all_soft_refs_clear(false) {
}
bool SoftRefPolicy::use_should_clear_all_soft_refs(bool v) {
bool result = _should_clear_all_soft_refs;
set_should_clear_all_soft_refs(false);
return result;
}
void SoftRefPolicy::cleared_all_soft_refs() {
_all_soft_refs_clear = true;
}

View File

@ -45,9 +45,7 @@ class SoftRefPolicy {
bool should_clear_all_soft_refs() { return _should_clear_all_soft_refs; }
void set_should_clear_all_soft_refs(bool v) { _should_clear_all_soft_refs = v; }
// Returns the current value of _should_clear_all_soft_refs.
// _should_clear_all_soft_refs is set to false as a side effect.
bool use_should_clear_all_soft_refs(bool v);
bool all_soft_refs_clear() { return _all_soft_refs_clear; }
void set_all_soft_refs_clear(bool v) { _all_soft_refs_clear = v; }