JPS, CacheAttributesManager: remove unused methods

Original commit: 0d1f7965d4
This commit is contained in:
Sergey Rostov
2018-10-16 08:57:54 +03:00
parent 085dbb537a
commit 84ec60ba3e
@@ -44,19 +44,4 @@ interface CacheAttributesManager<Attrs : Any> {
fun <Attrs : Any> CacheAttributesManager<Attrs>.loadDiff(
actual: Attrs? = this.loadActual(),
expected: Attrs? = this.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)
}
) = CacheAttributesDiff(this, actual, expected)