@@ -246,16 +246,6 @@ class Definitions {
246246 @ tu lazy val CompiletimeOpsPackageObjectString : Symbol = requiredModule(" scala.compiletime.ops.package.string" )
247247 @ tu lazy val CompiletimeOpsPackageObjectBoolean : Symbol = requiredModule(" scala.compiletime.ops.package.boolean" )
248248
249- /** The `scalaShadowing` package is used to safely modify classes and
250- * objects in scala so that they can be used from dotty. They will
251- * be visible as members of the `scala` package, replacing any objects
252- * or classes with the same name. But their binary artifacts are
253- * in `scalaShadowing` so they don't clash with the same-named `scala`
254- * members at runtime.
255- * It is used only for non-bootstrapped code
256- */
257- @ tu lazy val ScalaShadowingPackage : TermSymbol = requiredPackage(nme.scalaShadowing)
258-
259249 /** Note: We cannot have same named methods defined in Object and Any (and AnyVal, for that matter)
260250 * because after erasure the Any and AnyVal references get remapped to the Object methods
261251 * which would result in a double binding assertion failure.
@@ -1299,9 +1289,6 @@ class Definitions {
12991289 def isBoxedUnitClass (cls : Symbol ): Boolean =
13001290 cls.isClass && (cls.owner eq ScalaRuntimePackageClass ) && cls.name == tpnme.BoxedUnit
13011291
1302- def isScalaShadowingPackageClass (cls : Symbol ): Boolean =
1303- cls.name == tpnme.scalaShadowing && cls.owner == RootClass
1304-
13051292 /** Returns the erased class of the function class `cls`
13061293 * - FunctionN for N > 22 becomes FunctionXXL
13071294 * - FunctionN for 22 > N >= 0 remains as FunctionN
@@ -1738,10 +1725,6 @@ class Definitions {
17381725 def init ()(using Context ): Unit = {
17391726 this .initCtx = ctx
17401727 if (! isInitialized) {
1741- // Enter all symbols from the scalaShadowing package in the scala package
1742- for (m <- ScalaShadowingPackage .info.decls)
1743- ScalaPackageClass .enter(m)
1744-
17451728 // force initialization of every symbol that is synthesized or hijacked by the compiler
17461729 val forced = syntheticCoreClasses ++ syntheticCoreMethods ++ ScalaValueClasses () :+ JavaEnumClass
17471730
0 commit comments