JPS, CacheAttributesManager: remove unused methods
Original commit: 0d1f7965d4
This commit is contained in:
@@ -44,19 +44,4 @@ interface CacheAttributesManager<Attrs : Any> {
|
|||||||
fun <Attrs : Any> CacheAttributesManager<Attrs>.loadDiff(
|
fun <Attrs : Any> CacheAttributesManager<Attrs>.loadDiff(
|
||||||
actual: Attrs? = this.loadActual(),
|
actual: Attrs? = this.loadActual(),
|
||||||
expected: Attrs? = this.expected
|
expected: Attrs? = this.expected
|
||||||
) = CacheAttributesDiff(this, actual, expected)
|
) = CacheAttributesDiff(this, actual, expected)
|
||||||
|
|
||||||
fun <Attrs : Any> CacheAttributesManager<Attrs>.loadAndCheckStatus() =
|
|
||||||
loadDiff().status
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method is kept only for compatibility.
|
|
||||||
* Delete actual cache attributes values if it existed.
|
|
||||||
*/
|
|
||||||
@Deprecated(
|
|
||||||
message = "Consider using `this.loadDiff().saveExpectedIfNeeded()` and cache `loadDiff()` result.",
|
|
||||||
replaceWith = ReplaceWith("writeVersion(null)")
|
|
||||||
)
|
|
||||||
fun CacheAttributesManager<*>.clean() {
|
|
||||||
writeVersion(null)
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user