8242228: Shenandoah: remove unused ShenandoahCollectionSet methods
Reviewed-by: rkennke
diff --git a/src/hotspot/share/gc/shenandoah/shenandoahCollectionSet.cpp b/src/hotspot/share/gc/shenandoah/shenandoahCollectionSet.cpp
index 43998a4..e7bcb02 100644
--- a/src/hotspot/share/gc/shenandoah/shenandoahCollectionSet.cpp
+++ b/src/hotspot/share/gc/shenandoah/shenandoahCollectionSet.cpp
@@ -93,23 +93,6 @@
r->make_cset();
}
-bool ShenandoahCollectionSet::add_region_check_for_duplicates(ShenandoahHeapRegion* r) {
- if (!is_in(r)) {
- add_region(r);
- return true;
- } else {
- return false;
- }
-}
-
-void ShenandoahCollectionSet::remove_region(ShenandoahHeapRegion* r) {
- assert(ShenandoahSafepoint::is_at_shenandoah_safepoint(), "Must be at a safepoint");
- assert(Thread::current()->is_VM_thread(), "Must be VMThread");
- assert(is_in(r), "Not in collection set");
- _cset_map[r->index()] = 0;
- _region_count --;
-}
-
void ShenandoahCollectionSet::clear() {
assert(ShenandoahSafepoint::is_at_shenandoah_safepoint(), "Must be at a safepoint");
Copy::zero_to_bytes(_cset_map, _map_size);
diff --git a/src/hotspot/share/gc/shenandoah/shenandoahCollectionSet.hpp b/src/hotspot/share/gc/shenandoah/shenandoahCollectionSet.hpp
index 8415955..e69561f 100644
--- a/src/hotspot/share/gc/shenandoah/shenandoahCollectionSet.hpp
+++ b/src/hotspot/share/gc/shenandoah/shenandoahCollectionSet.hpp
@@ -56,10 +56,6 @@
// Add region to collection set
void add_region(ShenandoahHeapRegion* r);
- bool add_region_check_for_duplicates(ShenandoahHeapRegion* r);
-
- // Remove region from collection set
- void remove_region(ShenandoahHeapRegion* r);
// MT version
ShenandoahHeapRegion* claim_next();