Skip to content

Commit ae2002d

Browse files
committed
.
1 parent ce29826 commit ae2002d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

runner/meta/src/mill/meta/CodeGen.scala

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package mill.meta
33
import scala.jdk.CollectionConverters.CollectionHasAsScala
44

55
import mill.constants.{CodeGenConstants as CGConst}
6-
import mill.api.Result
76
import mill.internal.Util.backtickWrap
87
import pprint.Util.literalize
98
import mill.api.daemon.internal.MillScalaParser
@@ -30,7 +29,6 @@ object CodeGen {
3029
// Provide `build` as an alias to the root `build_.package_`, since from the user's
3130
// perspective it looks like they're writing things that live in `package build`,
3231
// but at compile-time we rename things, we so provide an alias to preserve the fiction
33-
3432

3533
for (scriptPath <- scriptSources) {
3634
val scriptFolderPath = scriptPath / os.up
@@ -304,9 +302,6 @@ object CodeGen {
304302

305303
val objectData = parser.parseObjectData(scriptCode)
306304

307-
val expectedModuleMsg =
308-
if (projectRoot != millTopLevelProjectRoot) "MillBuildRootModule" else "mill.Module"
309-
310305
val newParent =
311306
if (segments.isEmpty) "_root_.mill.util.MainRootModule"
312307
else "_root_.mill.api.internal.SubfolderModule(build.millDiscover)"
@@ -326,7 +321,6 @@ object CodeGen {
326321
|}
327322
|""".stripMargin
328323

329-
330324
objectData.find(o => o.name.text == "`package`") match {
331325
case Some(objectData) =>
332326

0 commit comments

Comments
 (0)