From fde30d01811fb82d579f8edc04e1c170af192cdb Mon Sep 17 00:00:00 2001 From: Alberto Arri <30873160+al-r3@users.noreply.github.com> Date: Fri, 6 Oct 2017 10:45:17 +0100 Subject: [PATCH] removed unused variable in PersistentNetworkMapCache (#1813) val publicKey in unused in PersistentNetworkMapCache, removed. --- .../corda/node/services/network/PersistentNetworkMapCache.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/node/src/main/kotlin/net/corda/node/services/network/PersistentNetworkMapCache.kt b/node/src/main/kotlin/net/corda/node/services/network/PersistentNetworkMapCache.kt index 2dac97909a..b2fb8c3bde 100644 --- a/node/src/main/kotlin/net/corda/node/services/network/PersistentNetworkMapCache.kt +++ b/node/src/main/kotlin/net/corda/node/services/network/PersistentNetworkMapCache.kt @@ -19,7 +19,6 @@ import net.corda.core.serialization.deserialize import net.corda.core.serialization.serialize import net.corda.core.utilities.NetworkHostAndPort import net.corda.core.utilities.loggerFor -import net.corda.core.utilities.parsePublicKeyBase58 import net.corda.core.utilities.toBase58String import net.corda.node.services.api.NetworkCacheException import net.corda.node.services.api.NetworkMapCacheInternal @@ -274,7 +273,6 @@ open class PersistentNetworkMapCache(private val serviceHub: ServiceHubInternal) for (nodeInfo in result) { try { logger.info("Loaded node info: $nodeInfo") - val publicKey = parsePublicKeyBase58(nodeInfo.legalIdentitiesAndCerts.single { it.isMain }.owningKey) val node = nodeInfo.toNodeInfo() addNode(node) _loadDBSuccess = true // This is used in AbstractNode to indicate that node is ready.