diff options
author | Paul Phillips <paulp@improving.org> | 2011-08-15 20:48:25 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-08-15 20:48:25 +0000 |
commit | 20859263f2a2cf85464b333b9842bb31c020ee5e (patch) | |
tree | 8a315ae89a7a3bf1093dd4c62dffa7c188c785fc /src/library/scala/xml | |
parent | e43daf434becf4497acb4d297ab6d2866c16d1aa (diff) | |
download | scala-20859263f2a2cf85464b333b9842bb31c020ee5e.tar.gz scala-20859263f2a2cf85464b333b9842bb31c020ee5e.tar.bz2 scala-20859263f2a2cf85464b333b9842bb31c020ee5e.zip |
Removing the code which has been deprecated sin...
Removing the code which has been deprecated since 2.8.0. Contributed by
Simon Ochsenreither, although deleting code is such fun one hesitates to
call it a contribution. Still, we will. Closes SI-4860, no review.
Diffstat (limited to 'src/library/scala/xml')
-rw-r--r-- | src/library/scala/xml/HasKeyValue.scala | 24 | ||||
-rw-r--r-- | src/library/scala/xml/XML.scala | 8 |
2 files changed, 0 insertions, 32 deletions
diff --git a/src/library/scala/xml/HasKeyValue.scala b/src/library/scala/xml/HasKeyValue.scala deleted file mode 100644 index 55ac63e201..0000000000 --- a/src/library/scala/xml/HasKeyValue.scala +++ /dev/null @@ -1,24 +0,0 @@ -/* __ *\ -** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2003-2011, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** -** /____/\___/_/ |_/____/_/ | | ** -** |/ ** -\* */ - -package scala.xml - -/** Use this class to match on (unprefixed) attribute values - * {{{ - * val hasName = new HasKeyValue("name") - * node match { - * case Node("foo", hasName(x), _*) => x // foo had attribute with key "name" and with value x - * } - * }}} - * - * @author Burak Emir - */ -@deprecated("Use UnprefixedAttribute's extractor", "2.8.0") -class HasKeyValue(key: String) { - def unapplySeq(x: MetaData): Option[Seq[Node]] = x.get(key) -} diff --git a/src/library/scala/xml/XML.scala b/src/library/scala/xml/XML.scala index 678028dd28..bc3033d081 100644 --- a/src/library/scala/xml/XML.scala +++ b/src/library/scala/xml/XML.scala @@ -49,14 +49,6 @@ object XML extends XMLLoader[Elem] def withSAXParser(p: SAXParser): XMLLoader[Elem] = new XMLLoader[Elem] { override val parser: SAXParser = p } - @deprecated("Use save() instead", "2.8.0") - final def saveFull(filename: String, node: Node, xmlDecl: Boolean, doctype: dtd.DocType): Unit = - save(filename, node, encoding, xmlDecl, doctype) - - @deprecated("Use save() instead", "2.8.0") - final def saveFull(filename: String, node: Node, enc: String, xmlDecl: Boolean, doctype: dtd.DocType): Unit = - save(filename, node, enc, xmlDecl, doctype) - /** Saves a node to a file with given filename using given encoding * optionally with xmldecl and doctype declaration. * |