You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by st...@apache.org on 2020/10/27 10:15:49 UTC
[openwhisk] branch master updated: Remove unused trait and case
class (#5011)
This is an automated email from the ASF dual-hosted git repository.
style95 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk.git
The following commit(s) were added to refs/heads/master by this push:
new 739755a Remove unused trait and case class (#5011)
739755a is described below
commit 739755aef8cd41e9d70bb83dfef6769303051640
Author: Bin Wang <62...@users.noreply.github.com>
AuthorDate: Tue Oct 27 06:15:28 2020 -0400
Remove unused trait and case class (#5011)
The trait `WorkerState` and case class `WorkerData` are no longer used
anywhere. Keeping them in the code base makes no sense.
---
.../org/apache/openwhisk/core/containerpool/ContainerPool.scala | 6 ------
1 file changed, 6 deletions(-)
diff --git a/core/invoker/src/main/scala/org/apache/openwhisk/core/containerpool/ContainerPool.scala b/core/invoker/src/main/scala/org/apache/openwhisk/core/containerpool/ContainerPool.scala
index c745bef..4327ad1 100644
--- a/core/invoker/src/main/scala/org/apache/openwhisk/core/containerpool/ContainerPool.scala
+++ b/core/invoker/src/main/scala/org/apache/openwhisk/core/containerpool/ContainerPool.scala
@@ -29,14 +29,8 @@ import scala.collection.immutable
import scala.concurrent.duration._
import scala.util.{Random, Try}
-sealed trait WorkerState
-case object Busy extends WorkerState
-case object Free extends WorkerState
-
case class ColdStartKey(kind: String, memory: ByteSize)
-case class WorkerData(data: ContainerData, state: WorkerState)
-
case object EmitMetrics
case object AdjustPrewarmedContainer