aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/annotations
diff options
context:
space:
mode:
authorJim Lawson2020-03-23 14:53:55 -0700
committerGitHub2020-03-23 21:53:55 +0000
commit5efcde9fccf81c9ee03a1029b1a41fa4345d9fba (patch)
tree918d65921731735490c07518c8f93d8493caa7db /src/main/scala/firrtl/annotations
parent5658865b6140c9a72d1da76631854b1f6efaf861 (diff)
Remove toNamed (and friends) deprecation. (#1449)
* Remove toNamed (and friends) deprecation. * Add inadvertently deleted leading double quote. * Remove commented out deprecations.
Diffstat (limited to 'src/main/scala/firrtl/annotations')
-rw-r--r--src/main/scala/firrtl/annotations/Target.scala5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/main/scala/firrtl/annotations/Target.scala b/src/main/scala/firrtl/annotations/Target.scala
index c7cb98d2..254e2dfd 100644
--- a/src/main/scala/firrtl/annotations/Target.scala
+++ b/src/main/scala/firrtl/annotations/Target.scala
@@ -86,7 +86,6 @@ sealed trait Target extends Named {
def toGenericTarget: GenericTarget = GenericTarget(circuitOpt, moduleOpt, tokens.toVector)
/** @return Converts this [[Target]] into either a [[CircuitName]], [[ModuleName]], or [[ComponentName]] */
- @deprecated("Use Target instead, will be removed in 1.3", "1.2")
def toNamed: Named = toGenericTarget.toNamed
/** @return If legal, convert this [[Target]] into a [[CompleteTarget]] */
@@ -692,27 +691,23 @@ case class InstanceTarget(circuit: String,
/** Named classes associate an annotation with a component in a Firrtl circuit */
-@deprecated("Use Target instead, will be removed in 1.3", "1.2")
sealed trait Named {
def serialize: String
def toTarget: CompleteTarget
}
-@deprecated("Use Target instead, will be removed in 1.3", "1.2")
final case class CircuitName(name: String) extends Named {
if(!validModuleName(name)) throw AnnotationException(s"Illegal circuit name: $name")
def serialize: String = name
def toTarget: CircuitTarget = CircuitTarget(name)
}
-@deprecated("Use Target instead, will be removed in 1.3", "1.2")
final case class ModuleName(name: String, circuit: CircuitName) extends Named {
if(!validModuleName(name)) throw AnnotationException(s"Illegal module name: $name")
def serialize: String = circuit.serialize + "." + name
def toTarget: ModuleTarget = ModuleTarget(circuit.name, name)
}
-@deprecated("Use Target instead, will be removed in 1.3", "1.2")
final case class ComponentName(name: String, module: ModuleName) extends Named {
if(!validComponentName(name)) throw AnnotationException(s"Illegal component name: $name")
def expr: Expression = toExp(name)