Skip to content

Commit

Permalink
feat: remove unused extension dependsOn
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The extension does not exist anymore and any use should be removed
  • Loading branch information
oSumAtrIX committed Oct 4, 2022
1 parent 4ae9ad0 commit 797286b
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@ object PatchExtensions {
if (cl == Patch::class) null else cl
}
}

@JvmStatic
fun Class<out Patch<Data>>.dependsOn(patch: Class<out Patch<Data>>): Boolean {
if (this.patchName == patch.patchName) throw IllegalArgumentException("thisval and patch may not be the same")
return this.dependencies?.any { it.java.patchName == this@dependsOn.patchName } == true
}
}

object MethodFingerprintExtensions {
Expand Down

0 comments on commit 797286b

Please sign in to comment.