Skip to content

Commit

Permalink
testInsert: remove unneeded import
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindberg committed Jun 11, 2024
1 parent 870569e commit 3cb9109
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/
package adventureworks

import adventureworks.TestDomainInsert
import adventureworks.customtypes.Defaulted
import adventureworks.customtypes.TypoBox
import adventureworks.customtypes.TypoBytea
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/
package adventureworks

import adventureworks.TestDomainInsert
import adventureworks.customtypes.Defaulted
import adventureworks.customtypes.TypoBox
import adventureworks.customtypes.TypoBytea
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/
package adventureworks

import adventureworks.TestDomainInsert
import adventureworks.customtypes.Defaulted
import adventureworks.customtypes.TypoBox
import adventureworks.customtypes.TypoBytea
Expand Down
4 changes: 2 additions & 2 deletions typo/src/scala/typo/internal/generate.scala
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ object generate {

val allFiles: Iterator[sc.File] = {
val knownNamesByPkg: Map[sc.QIdent, Map[sc.Ident, sc.Type.Qualified]] =
keptMostFiles.groupBy(_.pkg).map { case (pkg, files) =>
(keptMostFiles ++ testInsertsDataFiles).groupBy(_.pkg).map { case (pkg, files) =>
(pkg, files.flatMap(f => (f.name, f.tpe) :: f.secondaryTypes.map(tpe => (tpe.value.name, tpe))).toMap)
}

Expand Down Expand Up @@ -176,7 +176,7 @@ object generate {
}

// projects in graph will have duplicated files, this will pull the files up until they are no longer duplicated
def deduplicate[S](graph: ProjectGraph[Files, S]) = {
def deduplicate[S](graph: ProjectGraph[Files, S]): ProjectGraph[Files, S] = {
def go(current: ProjectGraph[Files, S]): (Files, ProjectGraph[Files, S]) = {
// start at leaves, so we can pull up files from the bottom up
val (downstreamAccFiles: List[Files], rewrittenDownstream: List[ProjectGraph[Files, S]]) =
Expand Down

0 comments on commit 3cb9109

Please sign in to comment.