mbeckerle commented on a change in pull request #88: Daffodil 1919 separators
URL: https://github.com/apache/incubator-daffodil/pull/88#discussion_r206590617
##########
File path:
daffodil-runtime1/src/main/scala/org/apache/daffodil/processors/unparsers/Unparser.scala
##########
@@ -140,25 +140,6 @@ trait SuspendableUnparser
}
}
-// No-op, in case an optimization lets one of these sneak thru.
-// TODO: make this fail, and test optimizer sufficiently to know these
-// do NOT get through.
-final class EmptyGramUnparser(override val context: TermRuntimeData = null)
extends PrimUnparserNoData {
-
- override lazy val runtimeDependencies = Nil
-
- def unparse(ustate: UState) {
- Assert.invariantFailed("EmptyGramUnparsers are all supposed to optimize
out!")
- }
-
- override def isEmpty = true
-
- override lazy val childProcessors = Nil
-
- override def toBriefXML(depthLimit: Int = -1) = "<empty/>"
- override def toString = toBriefXML()
-}
-
final class ErrorUnparser(override val context: TermRuntimeData = null)
extends PrimUnparserNoData {
Review comment:
Unused. Delete class.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services