diff options
author | Paul Phillips <paulp@improving.org> | 2009-08-22 23:29:38 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-08-22 23:29:38 +0000 |
commit | cd36447b0af834fc6086acedf7625e513b9411d6 (patch) | |
tree | cd72a9b532cd81b57ed23910175db4fc793c615a /src/compiler/scala/tools/nsc/util/ClassPath.scala | |
parent | a8edce124f7badd1570fa6a125b02ba654897c6a (diff) | |
download | scala-cd36447b0af834fc6086acedf7625e513b9411d6.tar.gz scala-cd36447b0af834fc6086acedf7625e513b9411d6.tar.bz2 scala-cd36447b0af834fc6086acedf7625e513b9411d6.zip |
A few straggler deprecations with straightforwa...
A few straggler deprecations with straightforward enough resolutions.
Diffstat (limited to 'src/compiler/scala/tools/nsc/util/ClassPath.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/util/ClassPath.scala | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/compiler/scala/tools/nsc/util/ClassPath.scala b/src/compiler/scala/tools/nsc/util/ClassPath.scala index 081a4a4bd9..17a233d7bb 100644 --- a/src/compiler/scala/tools/nsc/util/ClassPath.scala +++ b/src/compiler/scala/tools/nsc/util/ClassPath.scala @@ -41,14 +41,8 @@ object ClassPath { } /** Split path using platform-dependent path separator */ - def splitPath(path: String): List[String] = { - val strtok = new StringTokenizer(path, File.pathSeparator) - val buf = new collection.mutable.ListBuffer[String] - while (strtok.hasMoreTokens()) { - buf + strtok.nextToken() - } - buf.toList - } + def splitPath(path: String): List[String] = + path split File.pathSeparator toList /** Expand path with expanding stars */ def expandPath(path: String): List[String] = splitPath(path).flatMap(expandStar(_)) |