summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/io/package.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-11-12 23:21:47 -0800
committerPaul Phillips <paulp@improving.org>2012-11-19 11:53:44 -0800
commit645c2676dd6699ac24a57dfe750386bbdb827ee8 (patch)
tree8a7391c27b58da5ef5529ce17ce3b1f3178a21e9 /src/compiler/scala/tools/nsc/io/package.scala
parent345f937b3441f248ac9156484758fa17b1a78941 (diff)
downloadscala-645c2676dd6699ac24a57dfe750386bbdb827ee8.tar.gz
scala-645c2676dd6699ac24a57dfe750386bbdb827ee8.tar.bz2
scala-645c2676dd6699ac24a57dfe750386bbdb827ee8.zip
Commenting out unused members.
I want to get this commit into the history because the tests pass here, which demonstrates that every commented out method is not only unnecessary internally but has zero test coverage. Since I know (based on the occasional source code comment, or more often based on knowing something about other source bases) that some of these can't be removed without breaking other things, I want to at least record a snapshot of the identities of all these unused and untested methods. This commit will be reverted; then there will be another commit which removes the subset of these methods which I believe to be removable. The remainder are in great need of tests which exercise the interfaces upon which other repositories depend.
Diffstat (limited to 'src/compiler/scala/tools/nsc/io/package.scala')
-rw-r--r--src/compiler/scala/tools/nsc/io/package.scala22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/compiler/scala/tools/nsc/io/package.scala b/src/compiler/scala/tools/nsc/io/package.scala
index c29a7c96df..e9fb8a6d98 100644
--- a/src/compiler/scala/tools/nsc/io/package.scala
+++ b/src/compiler/scala/tools/nsc/io/package.scala
@@ -20,14 +20,14 @@ package object io {
type Path = scala.reflect.io.Path
val Path = scala.reflect.io.Path
type PlainFile = scala.reflect.io.PlainFile
- val PlainFile = scala.reflect.io.PlainFile
+ // val PlainFile = scala.reflect.io.PlainFile
val Streamable = scala.reflect.io.Streamable
type VirtualDirectory = scala.reflect.io.VirtualDirectory
type VirtualFile = scala.reflect.io.VirtualFile
- val ZipArchive = scala.reflect.io.ZipArchive
+ // val ZipArchive = scala.reflect.io.ZipArchive
type ZipArchive = scala.reflect.io.ZipArchive
- implicit def postfixOps = scala.language.postfixOps // make all postfix ops in this package compile without warning
+ // implicit def postfixOps = scala.language.postfixOps // make all postfix ops in this package compile without warning
type JManifest = java.util.jar.Manifest
type JFile = java.io.File
@@ -38,10 +38,10 @@ package object io {
def runnable(body: => Unit): Runnable = new Runnable { override def run() = body }
def callable[T](body: => T): Callable[T] = new Callable[T] { override def call() = body }
def spawn[T](body: => T): Future[T] = daemonThreadPool submit callable(body)
- def submit(runnable: Runnable) = daemonThreadPool submit runnable
+ // def submit(runnable: Runnable) = daemonThreadPool submit runnable
// Create, start, and return a daemon thread
- def daemonize(body: => Unit): Thread = newThread(_ setDaemon true)(body)
+ // def daemonize(body: => Unit): Thread = newThread(_ setDaemon true)(body)
def newThread(f: Thread => Unit)(body: => Unit): Thread = {
val thread = new Thread(runnable(body))
f(thread)
@@ -50,11 +50,11 @@ package object io {
}
// Set a timer to execute the given code.
- def timer(seconds: Int)(body: => Unit): Timer = {
- val alarm = new Timer(true) // daemon
- val tt = new TimerTask { def run() = body }
+ // def timer(seconds: Int)(body: => Unit): Timer = {
+ // val alarm = new Timer(true) // daemon
+ // val tt = new TimerTask { def run() = body }
- alarm.schedule(tt, seconds * 1000)
- alarm
- }
+ // alarm.schedule(tt, seconds * 1000)
+ // alarm
+ // }
}