summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library/scala/xml/Molecule.scala43
-rw-r--r--src/library/scala/xml/PrettyPrinter.scala4
2 files changed, 2 insertions, 45 deletions
diff --git a/src/library/scala/xml/Molecule.scala b/src/library/scala/xml/Molecule.scala
deleted file mode 100644
index 8e0086f3ab..0000000000
--- a/src/library/scala/xml/Molecule.scala
+++ /dev/null
@@ -1,43 +0,0 @@
-/* __ *\
-** ________ ___ / / ___ Scala API **
-** / __/ __// _ | / / / _ | (c) 2003-2006, LAMP/EPFL **
-** __\ \/ /__/ __ |/ /__/ __ | **
-** /____/\___/_/ |_/____/_/ | | **
-** |/ **
-\* */
-
-// $Id$
-
-
-package scala.xml;
-
-import scala.runtime.compat.StringBuilder;
-
-/** an XML node for a list of data items.
- * @author buraq
- * @param list a list of data items, space separated
- */
-class Molecule[+A]( val list: List[A] ) extends SpecialNode {
-
- final override def typeTag$:Int = -1;
-
- /** the constant "#PCDATA"
- */
- def label = "#PCDATA";
-
- final override def equals(x:Any) = x match {
- case s:Molecule[A] => list == s.list ;
- case _ => false;
- }
-
- /** hashcode for this Text */
- override def hashCode() =
- list.hashCode();
-
- override def text = list.mkString(""," ","");
-
- /** returns text, with some characters escaped according to XML spec */
- def toString(sb:StringBuilder) =
- sb.append(list.mkString(""," ",""))
-
-}
diff --git a/src/library/scala/xml/PrettyPrinter.scala b/src/library/scala/xml/PrettyPrinter.scala
index 96d43c5383..60ac1b5730 100644
--- a/src/library/scala/xml/PrettyPrinter.scala
+++ b/src/library/scala/xml/PrettyPrinter.scala
@@ -128,7 +128,7 @@ class PrettyPrinter( width:Int, step:Int ) {
val it = n.child.elements;
while( it.hasNext )
it.next match {
- case _:Atom[Any] | _: Molecule[Any] | _:Comment | _:EntityRef | _:ProcInstr =>
+ case _:Atom[Any] | _:Comment | _:EntityRef | _:ProcInstr =>
case _:Node =>
return false;
}
@@ -145,7 +145,7 @@ class PrettyPrinter( width:Int, step:Int ) {
case Text(s) if s.trim() == "" =>
- case _:Atom[Any] | _:Molecule[Any] | _:Comment | _:EntityRef | _:ProcInstr =>
+ case _:Atom[Any] | _:Comment | _:EntityRef | _:ProcInstr =>
makeBox( ind, node.toString().trim() );
case _ =>