diff options
author | Paul Phillips <paulp@improving.org> | 2013-09-27 12:28:55 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-10-02 08:59:55 -0700 |
commit | aced32d05c97651534f468bc9a475ea5f6ae75b8 (patch) | |
tree | fda8b628ae8501a8df945aeb7f558f259c857e62 /src/reflect/scala/reflect/runtime/TwoWayCache.scala | |
parent | 45183d8d28ff082d9186018b707f9fecb466f14f (diff) | |
download | scala-aced32d05c97651534f468bc9a475ea5f6ae75b8.tar.gz scala-aced32d05c97651534f468bc9a475ea5f6ae75b8.tar.bz2 scala-aced32d05c97651534f468bc9a475ea5f6ae75b8.zip |
Removing unused code.
Most of this was revealed via -Xlint with a flag which assumes
closed world. I can't see how to check the assumes-closed-world
code in without it being an ordeal. I'll leave it in a branch in
case anyone wants to finish the long slog to the merge.
Diffstat (limited to 'src/reflect/scala/reflect/runtime/TwoWayCache.scala')
-rw-r--r-- | src/reflect/scala/reflect/runtime/TwoWayCache.scala | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/reflect/scala/reflect/runtime/TwoWayCache.scala b/src/reflect/scala/reflect/runtime/TwoWayCache.scala index 181ca6014a..d0fc3dac74 100644 --- a/src/reflect/scala/reflect/runtime/TwoWayCache.scala +++ b/src/reflect/scala/reflect/runtime/TwoWayCache.scala @@ -52,16 +52,4 @@ private[runtime] class TwoWayCache[J, S] { result } } - - def toJavaOption(key: S)(body: => Option[J]): Option[J] = synchronized { - toJavaMap get key match { - case SomeRef(v) => - Some(v) - case _ => - val result = body - for (value <- result) enter(value, key) - result - } - } } - |