From b08f3e3e9d516fc13556e06a65d4c29aa39f8e15 Mon Sep 17 00:00:00 2001 From: michelou Date: Wed, 13 Feb 2008 18:25:24 +0000 Subject: removed deprecated class util.Fluid --- .../scala/tools/nsc/typechecker/Unapplies.scala | 1 + src/library/scala/util/Fluid.scala | 25 ---------------------- 2 files changed, 1 insertion(+), 25 deletions(-) delete mode 100644 src/library/scala/util/Fluid.scala (limited to 'src') diff --git a/src/compiler/scala/tools/nsc/typechecker/Unapplies.scala b/src/compiler/scala/tools/nsc/typechecker/Unapplies.scala index 94c9d9865a..cacef3a7b2 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Unapplies.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Unapplies.scala @@ -171,6 +171,7 @@ trait Unapplies { self: Analyzer => val tparams = cdef.tparams map copyUntyped[TypeDef] val unapplyParamName = newTermName("x$0") val hasVarArg = constrParams(cdef) match { + case Nil :: _ => false case cps :: _ => treeInfo.isRepeatedParamType(cps.last.tpt) case _ => false } diff --git a/src/library/scala/util/Fluid.scala b/src/library/scala/util/Fluid.scala deleted file mode 100644 index 0b59ff3629..0000000000 --- a/src/library/scala/util/Fluid.scala +++ /dev/null @@ -1,25 +0,0 @@ -/* __ *\ -** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2006-2007, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** -** /____/\___/_/ |_/____/_/ | | ** -** |/ ** -\* */ - -// $Id$ - - -package scala.util - - -import Predef._ -import java.lang.InheritableThreadLocal - -/**

This is the same as DynamicVariable. The name "fluid" - * is confusing, and perhaps not even accurate.

- * - * @author Lex Spoon - * @version 1.1, 2007-5-21 - */ -@deprecated -class Fluid[T](init: T) extends DynamicVariable[T](init) -- cgit v1.2.3