Skip to content

Commit 7e72141

Browse files
committed
Clean up imports
1 parent 74053a8 commit 7e72141

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

compiler/lib/src/main/scala/codegen/DictionaryJsonWriter/DictionaryJsonEncoder.scala

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import fpp.compiler.util._
55
import fpp.compiler.analysis._
66
import io.circe._
77
import io.circe.syntax._
8-
import fpp.compiler.analysis.Event.TimeInterval
9-
import fpp.compiler.analysis.Event.Throttle
108

119

1210

@@ -465,16 +463,16 @@ case class DictionaryJsonEncoder(
465463

466464
/** JSON Encoding for Event.Throttle */
467465
private implicit def eventThrottleEncoder: Encoder[Event.Throttle] = new Encoder[Event.Throttle] {
468-
override def apply(throttle: Throttle): Json = {
466+
override def apply(throttle: Event.Throttle): Json = {
469467
throttle match {
470-
case Throttle(count, Some(every)) => Json.obj(
468+
case Event.Throttle(count, Some(every)) => Json.obj(
471469
"count" -> count.asJson,
472470
"every" -> Json.obj(
473471
"seconds" -> every.seconds.asJson,
474472
"useconds" -> every.useconds.asJson
475473
)
476474
)
477-
case Throttle(count, None) => Json.obj(
475+
case Event.Throttle(count, None) => Json.obj(
478476
"count" -> count.asJson,
479477
"every" -> Json.Null
480478
)

0 commit comments

Comments
 (0)