Skip to content

Commit

Permalink
Drop NecessaryEvil now that the fix for scala/scala-collection-cont…
Browse files Browse the repository at this point in the history
…rib#239 has been released.
  • Loading branch information
sageserpent-open committed Oct 21, 2024
1 parent f5b0b12 commit 202aa69
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 53 deletions.
4 changes: 1 addition & 3 deletions src/main/scala/com/sageserpent/kineticmerge/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import scopt.{DefaultOEffectSetup, OParser}

import scala.annotation.varargs
import scala.collection.BuildFrom
import scala.collection.decorators.mapDecorator
import scala.io.Source
import scala.util.Try

Expand Down Expand Up @@ -685,9 +686,6 @@ object Main extends StrictLogging:
theirChanges: Map[Path, Change]
): Workflow[List[(Path, MergeInput)]] =

// TODO: use `ourChanges.mergeByKey(theirChanges)` if
// https://github.com/scala/scala-collection-contrib/issues/239 leads to a
// bug-fix.
val outerJoin = ourChanges.mergeByKey(theirChanges)

outerJoin.toList
Expand Down
49 changes: 0 additions & 49 deletions src/main/scala/com/sageserpent/kineticmerge/NecessaryEvil.scala

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package com.sageserpent.kineticmerge.core

import com.sageserpent.kineticmerge.core.Match.*
import com.sageserpent.kineticmerge.core.merge.MergeAlgebra
import com.sageserpent.kineticmerge.mergeByKeyWith
import com.typesafe.scalalogging.StrictLogging
import monocle.syntax.all.*

import scala.collection.decorators.mapDecorator
import scala.collection.immutable.MultiDict

class MatchesContext[Element](
Expand Down

0 comments on commit 202aa69

Please sign in to comment.