Minor: remove File?.readTextOrEmpty()

This commit is contained in:
Ilya Gorbunov
2016-01-21 19:22:04 +03:00
parent d728a1a6c7
commit 6d5a65cac6
2 changed files with 2 additions and 7 deletions
@@ -18,10 +18,6 @@ package org.jetbrains.kotlin.utils.fileUtils
import java.io.File
// TODO: move to stdlib as:
// public fun File?.readTextOrEmpty(encoding: String = Charset.defaultCharset().name()): String = this?.readText(encoding) ?: ""
fun File?.readTextOrEmpty(): String = this?.readText() ?: ""
fun File.withReplacedExtensionOrNull(oldExt: String, newExt: String): File? {
if (name.endsWith(oldExt)) {
val path = path