Skip to content
Permalink
Browse files
8263852: Unused method SoftRefPolicy::use_should_clear_all_soft_refs
Reviewed-by: tschatzl
  • Loading branch information
albertnetymk committed Mar 19, 2021
1 parent 57497ab commit 1572f3ccddc362dffd2fd0028deec8c82921a9d9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
@@ -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;
}
@@ -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; }

0 comments on commit 1572f3c

Please sign in to comment.