Skip to content

Commit

Permalink
Remove unused addURLs helper
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquerie committed Jun 22, 2019
1 parent cdfbb92 commit 2670eae
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ktlint/src/main/kotlin/com/pinterest/ktlint/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -712,12 +712,6 @@ class KtlintCommandLine {
KtLint.formatScript(text, ruleSets, userData, cb)
}

private fun java.net.URLClassLoader.addURLs(url: Iterable<java.net.URL>) {
val method = java.net.URLClassLoader::class.java.getDeclaredMethod("addURL", java.net.URL::class.java)
method.isAccessible = true
url.forEach { method.invoke(this, it) }
}

private fun File.mkdirsOrFail() {
if (!mkdirs() && !isDirectory) {
throw IOException("Unable to create \"${this}\" directory")
Expand Down

0 comments on commit 2670eae

Please sign in to comment.