From 1784239d84865badbd98465506ae385f0c6875c7 Mon Sep 17 00:00:00 2001 From: Masayoshi TSUZUKI Date: Fri, 8 May 2015 20:43:12 +0900 Subject: [PATCH] removed Utils.formatPath. --- core/src/main/scala/org/apache/spark/util/Utils.scala | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/core/src/main/scala/org/apache/spark/util/Utils.scala b/core/src/main/scala/org/apache/spark/util/Utils.scala index d8e3d6d14ef3d..faea704962be6 100644 --- a/core/src/main/scala/org/apache/spark/util/Utils.scala +++ b/core/src/main/scala/org/apache/spark/util/Utils.scala @@ -1658,16 +1658,6 @@ private[spark] object Utils extends Logging { */ val windowsDrive = "([a-zA-Z])".r - /** - * Format a path such that it can be safely passed to a URI. - */ - def formatPath(path: String, windows: Boolean): String = { - val formatted = path.replace(" ", "%20") - - // In Windows, the file separator is a backslash, but this is inconsistent with the URI format - if (windows) formatted.replace("\\", "/") else formatted - } - /** * Indicates whether Spark is currently running unit tests. */