| 1653 | } |
| 1654 | |
| 1655 | void TxGraphImpl::SetClusterQuality(int level, QualityLevel old_quality, ClusterSetIndex old_index, QualityLevel new_quality) noexcept |
| 1656 | { |
| 1657 | Assume(new_quality != QualityLevel::NONE); |
| 1658 | |
| 1659 | // Don't do anything if the quality did not change. |
| 1660 | if (old_quality == new_quality) return; |
| 1661 | // Extract the cluster from where it currently resides. |
| 1662 | auto cluster_ptr = ExtractCluster(level, old_quality, old_index); |
| 1663 | // And re-insert it where it belongs. |
| 1664 | InsertCluster(level, std::move(cluster_ptr), new_quality); |
| 1665 | } |
| 1666 | |
| 1667 | void TxGraphImpl::DeleteCluster(Cluster& cluster, int level) noexcept |
| 1668 | { |
no outgoing calls
no test coverage detected