commit f15b3fd73495e47be19f396a6d9d1bc0959f7bd3 parent 88126d05cfc90f0c7de09270e71ec8457142b447 Author: Marcello Stanisci <ms@taler.net> Date: Thu, 30 Apr 2020 22:27:56 +0200 remove unused code Diffstat:
| M | util/src/main/kotlin/XMLUtil.kt | | | 9 | --------- |
1 file changed, 0 insertions(+), 9 deletions(-)
diff --git a/util/src/main/kotlin/XMLUtil.kt b/util/src/main/kotlin/XMLUtil.kt @@ -428,13 +428,4 @@ class XMLUtil private constructor() { fun Document.pickString(xpath: String): String { return XMLUtil.getStringFromXpath(this, xpath) -} - -fun Document.pickStringNullable(xpath: String): String? { - return try { - XMLUtil.getStringFromXpath(this, xpath) - } catch (e: UtilError) { - logger.info("Tolerating missing value: $xpath") - null - } } \ No newline at end of file