Skip to content

Commit

Permalink
removed Utils.formatPath.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsudukim committed May 8, 2015
1 parent e03f289 commit 1784239
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions core/src/main/scala/org/apache/spark/util/Utils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 1784239

Please sign in to comment.