Skip to content

Commit

Permalink
delete dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Dec 21, 2024
1 parent cf796c1 commit d9e0400
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions modules/puzzle/src/main/PuzzleHistory.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@ object PuzzleHistory:
case class PuzzleSession(
theme: PuzzleTheme.Key,
puzzles: NonEmptyList[SessionRound] // chronological order, oldest first
) {
// val nb = puzzles.size
// val firstWins = puzzles.toList.count(_.round.firstWin)
// val fails = nb - firstWins
// def puzzleRatingAvg = puzzles.toList.foldLeft(0)(_ + _.puzzle.glicko.intRating)
// def performance = puzzleRatingAvg - 500 + math.round(1000 * (firstWins.toFloat / nb))
}
)

final class HistoryAdapter(user: WithPerf, colls: PuzzleColls)(using Executor)
extends AdapterLike[PuzzleSession]:
Expand Down

0 comments on commit d9e0400

Please sign in to comment.