From 878d488a7c8e0d6973de58b3164022c6a102e449 Mon Sep 17 00:00:00 2001 From: Aditya Naik Date: Fri, 3 May 2024 10:59:45 -0700 Subject: Get cleanup to compile --- plugin/src/main/scala/chisel3/internal/plugin/ChiselComponent.scala | 6 ------ 1 file changed, 6 deletions(-) (limited to 'plugin/src/main') diff --git a/plugin/src/main/scala/chisel3/internal/plugin/ChiselComponent.scala b/plugin/src/main/scala/chisel3/internal/plugin/ChiselComponent.scala index dd9f24fb..c0efb4ed 100644 --- a/plugin/src/main/scala/chisel3/internal/plugin/ChiselComponent.scala +++ b/plugin/src/main/scala/chisel3/internal/plugin/ChiselComponent.scala @@ -88,7 +88,6 @@ class ChiselComponent(val global: Global, arguments: ChiselPluginArguments) tq"chisel3.VerificationStatement" ) private val shouldMatchModule: Type => Boolean = shouldMatchGen(tq"chisel3.experimental.BaseModule") - private val shouldMatchInstance: Type => Boolean = shouldMatchGen(tq"chisel3.experimental.hierarchy.Instance[_]") private val shouldMatchChiselPrefixed: Type => Boolean = shouldMatchGen( tq"chisel3.experimental.AffectsChiselPrefix" @@ -215,11 +214,6 @@ class ChiselComponent(val global: Global, arguments: ChiselPluginArguments) val newRHS = transform(rhs) val named = q"chisel3.internal.plugin.autoNameRecursively($str)($newRHS)" treeCopy.ValDef(dd, mods, name, tpt, localTyper.typed(named)) - } else if (shouldMatchInstance(tpe)) { - val str = stringFromTermName(name) - val newRHS = transform(rhs) - val named = q"chisel3.internal.plugin.autoNameRecursively($str)($newRHS)" - treeCopy.ValDef(dd, mods, name, tpt, localTyper.typed(named)) } else { // Otherwise, continue super.transform(tree) -- cgit v1.2.3