1
0

config: remove deprecated Parameters.root

This commit is contained in:
Henry Cook 2017-10-25 11:54:47 -07:00
parent 46751bedeb
commit bd50a1a4bc
2 changed files with 3 additions and 5 deletions

View File

@ -40,9 +40,8 @@ abstract class Parameters extends View {
}
object Parameters {
def empty: Parameters = new EmptyParameters
def empty: Parameters = new EmptyParameters
def apply(f: (View, View, View) => PartialFunction[Any,Any]): Parameters = new PartialParameters(f)
def root(p: Parameters) = p
}
class Config(p: Parameters) extends Parameters {

View File

@ -43,7 +43,7 @@ trait HasGeneratorUtilities {
def getParameters(names: ParsedInputNames): Parameters = getParameters(getConfig(names))
def getParameters(config: Config): Parameters = Parameters.root(config.toInstance)
def getParameters(config: Config): Parameters = config.toInstance
def elaborate(names: ParsedInputNames, params: Parameters): Circuit = {
val gen = () =>
@ -97,8 +97,7 @@ trait GeneratorApp extends App with HasGeneratorUtilities {
// Canonical ways of building various JVM elaboration-time structures
lazy val td = names.targetDir
lazy val config = getConfig(names)
lazy val world = config.toInstance
lazy val params = Parameters.root(world)
lazy val params = config.toInstance
lazy val circuit = elaborate(names, params)
val longName: String // Exhaustive name used to interface with external build tool targets