From 5f0c8e0707eebccb293b5adef99cccf055766616 Mon Sep 17 00:00:00 2001 From: szymonsztuka Date: Mon, 16 Jul 2018 10:35:53 +0100 Subject: [PATCH] Backport CORDA-1499 CORDA-1804 - remove unused code. --- .../nodeapi/internal/persistence/CordaPersistence.kt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/node-api/src/main/kotlin/net/corda/nodeapi/internal/persistence/CordaPersistence.kt b/node-api/src/main/kotlin/net/corda/nodeapi/internal/persistence/CordaPersistence.kt index f9479b8442..6ab9191a5b 100644 --- a/node-api/src/main/kotlin/net/corda/nodeapi/internal/persistence/CordaPersistence.kt +++ b/node-api/src/main/kotlin/net/corda/nodeapi/internal/persistence/CordaPersistence.kt @@ -248,16 +248,6 @@ fun rx.Observable.wrapWithDatabaseTransaction(db: CordaPersistence? } } -/** Check if any nested cause is of [SQLException] type. */ -private fun Throwable.hasSQLExceptionCause(): Boolean = - when (cause) { - null -> false - is SQLException -> true - else -> cause?.hasSQLExceptionCause() ?: false - } - -class CouldNotCreateDataSourceException(override val message: String?, override val cause: Throwable? = null) : Exception() - class IncompatibleAttachmentsContractsTableName(override val message: String?, override val cause: Throwable? = null) : Exception() private fun checkCorrectAttachmentsContractsTableName(connection: Connection) {