Skip to content

Commit 1784239

Browse files
committed
removed Utils.formatPath.
1 parent e03f289 commit 1784239

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

core/src/main/scala/org/apache/spark/util/Utils.scala

-10
Original file line numberDiff line numberDiff line change
@@ -1658,16 +1658,6 @@ private[spark] object Utils extends Logging {
16581658
*/
16591659
val windowsDrive = "([a-zA-Z])".r
16601660

1661-
/**
1662-
* Format a path such that it can be safely passed to a URI.
1663-
*/
1664-
def formatPath(path: String, windows: Boolean): String = {
1665-
val formatted = path.replace(" ", "%20")
1666-
1667-
// In Windows, the file separator is a backslash, but this is inconsistent with the URI format
1668-
if (windows) formatted.replace("\\", "/") else formatted
1669-
}
1670-
16711661
/**
16721662
* Indicates whether Spark is currently running unit tests.
16731663
*/

0 commit comments

Comments
 (0)