Skip to content

Commit

Permalink
remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
YuriyMazepin committed Jan 4, 2024
1 parent fb95f3e commit 1e85b2f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ ThisBuild / scalacOptions ++= {
"-source", "future-migration", "-deprecation"
, "release", "11"
, "-Yexplicit-nulls"
, "-Xfatal-warnings"
, "-Wunused:imports"
// , "-Xcheck-macros"
)
}
Expand Down
2 changes: 0 additions & 2 deletions proto/src/main/scala-3/BuildCodec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ package proto

import com.google.protobuf.{CodedOutputStream, CodedInputStream}
import scala.quoted.*
import scala.collection.immutable.ArraySeq
import compiletime.asMatchable

trait BuildCodec extends Common:
implicit val qctx: Quotes
import qctx.reflect.{*, given}
import qctx.reflect.defn.*
import report.*

def prepareTrait[A: Type](a: Expr[A], params: List[FieldInfo])(using Quotes): Expr[Prepare] =
val a_term = a.asTerm
Expand Down
4 changes: 1 addition & 3 deletions proto/src/main/scala-3/macrosapi.scala
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package proto

import com.google.protobuf.{CodedOutputStream, CodedInputStream}
import com.google.protobuf.{CodedInputStream}
import scala.quoted.*
import scala.collection.immutable.ArraySeq
import compiletime.asMatchable

//todo; optimisation for MessageCodec (add .size/.write and use these in proto.api.encode instead of .prepare)
Expand Down Expand Up @@ -37,7 +36,6 @@ end Macro

private class Impl(using val qctx: Quotes) extends BuildCodec:
import qctx.reflect.{*, given}
import qctx.reflect.defn.*
import report.*

def caseCodecAuto[A: Type]: Expr[MessageCodec[A]] =
Expand Down

0 comments on commit 1e85b2f

Please sign in to comment.