Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
nox213 committed Dec 1, 2024
1 parent 33c7094 commit 2e5697e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions upickle/implicits/src-3/upickle/implicits/macros.scala
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,6 @@ def allFieldsMappedNameImpl[T](using Quotes, Type[T]): Expr[List[String]] = {
inline def storeDefaults[T](inline x: upickle.implicits.BaseCaseObjectContext): Unit = ${storeDefaultsImpl[T]('x)}
def storeDefaultsImpl[T](x: Expr[upickle.implicits.BaseCaseObjectContext])(using Quotes, Type[T]) = {
import quotes.reflect.*

// val statements = allFields[T]
// .zipWithIndex
// .map { case ((_, label, _, default, isFlattenMap), i) =>
// default match {
// case Some(defaultValue) => '{${x}.storeValueIfNotFound(${Expr(i)}, ${defaultValue})}
// case None => if (isFlattenMap) '{${x}.storeValueIfNotFound(${Expr(i)}, Map.empty)} else '{}
// }
// }
val statements = allFields[T]
.filter(!_._5)
.zipWithIndex
Expand Down

0 comments on commit 2e5697e

Please sign in to comment.