[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: remove unused paramter
From: |
gnunet |
Subject: |
[libeufin] branch master updated: remove unused paramter |
Date: |
Mon, 20 Jul 2020 16:23:32 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new f56e42a remove unused paramter
f56e42a is described below
commit f56e42ada093fb2fdbc1befe41c48b65a0b829d5
Author: MS <ms@taler.net>
AuthorDate: Mon Jul 20 16:23:22 2020 +0200
remove unused paramter
---
util/src/main/kotlin/XmlCombinators.kt | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/util/src/main/kotlin/XmlCombinators.kt
b/util/src/main/kotlin/XmlCombinators.kt
index be7b83d..5b1abee 100644
--- a/util/src/main/kotlin/XmlCombinators.kt
+++ b/util/src/main/kotlin/XmlCombinators.kt
@@ -127,11 +127,11 @@ private fun Element.getChildElements(ns: String, tag:
String): List<Element> {
return elements
}
-class XmlElementDestructor internal constructor(val d: Document, val e:
Element) {
+class XmlElementDestructor internal constructor(val e: Element) {
fun <T> requireOnlyChild(f: XmlElementDestructor.(e: Element) -> T): T {
val children = e.getChildElements("*", "*")
if (children.size != 1) throw DestructionError("expected singleton
child tag")
- val destr = XmlElementDestructor(d, children[0])
+ val destr = XmlElementDestructor(children[0])
return f(destr, children[0])
}
@@ -139,7 +139,7 @@ class XmlElementDestructor internal constructor(val d:
Document, val e: Element)
val res = mutableListOf<T>()
val els = e.getChildElements("*", s)
for (child in els) {
- val destr = XmlElementDestructor(d, child)
+ val destr = XmlElementDestructor(child)
res.add(f(destr, child))
}
return res
@@ -151,7 +151,7 @@ class XmlElementDestructor internal constructor(val d:
Document, val e: Element)
throw DestructionError("expected exactly one unique $s child, got
${cl.size} instead at ${e}")
}
val el = cl[0]
- val destr = XmlElementDestructor(d, el)
+ val destr = XmlElementDestructor(el)
return f(destr, el)
}
@@ -162,7 +162,7 @@ class XmlElementDestructor internal constructor(val d:
Document, val e: Element)
}
if (cl.size == 1) {
val el = cl[0]
- val destr = XmlElementDestructor(d, el)
+ val destr = XmlElementDestructor(el)
return f(destr, el)
}
return null
@@ -174,7 +174,7 @@ class XmlDocumentDestructor internal constructor(val d:
Document) {
if (this.d.documentElement.tagName != name) {
throw DestructionError("expected '$name' tag")
}
- val destr = XmlElementDestructor(d, d.documentElement)
+ val destr = XmlElementDestructor(d.documentElement)
return f(destr, this.d.documentElement)
}
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: remove unused paramter,
gnunet <=