@@ -20,16 +20,6 @@ import scala.collection.Seq
2020 * syntax `case Elem(prefix, label, attribs, scope, child @ _*) => ...`
2121 */
2222object Elem {
23- /**
24- * Build an Elem, setting its minimizeEmpty property to `true` if it has no children. Note that this
25- * default may not be exactly what you want, as some XML dialects don't permit some elements to be minimized.
26- *
27- * @deprecated This factory method is retained for backward compatibility; please use the other one, with which you
28- * can specify your own preference for minimizeEmpty.
29- */
30- @ deprecated(" Use the other apply method in this object" , " 2.10.0" )
31- def apply (prefix : String , label : String , attributes : MetaData , scope : NamespaceBinding , child : Node * ): Elem =
32- apply(prefix, label, attributes, scope, child.isEmpty, child : _* )
3323
3424 def apply (prefix : String , label : String , attributes : MetaData , scope : NamespaceBinding , minimizeEmpty : Boolean , child : Node * ): Elem =
3525 new Elem (prefix, label, attributes, scope, minimizeEmpty, child : _* )
@@ -91,12 +81,8 @@ class Elem(
9181 attributes1 : MetaData ,
9282 override val scope : NamespaceBinding ,
9383 val minimizeEmpty : Boolean ,
94- val child : Node * )
95- extends Node with Serializable {
96- @ deprecated(" This constructor is retained for backward compatibility. Please use the primary constructor, which lets you specify your own preference for `minimizeEmpty`." , " 2.10.0" )
97- def this (prefix : String , label : String , attributes : MetaData , scope : NamespaceBinding , child : Node * ) = {
98- this (prefix, label, attributes, scope, child.isEmpty, child : _* )
99- }
84+ val child : Node *
85+ ) extends Node with Serializable {
10086
10187 final override def doCollectNamespaces = true
10288 final override def doTransform = true
0 commit comments