From df1de19ae532efacad92dc8800b9e29e366018c1 Mon Sep 17 00:00:00 2001 From: Ross Nicoll Date: Fri, 16 Sep 2016 15:31:03 +0100 Subject: [PATCH] Remove hard-coded reference to Mike's home directory --- .../com/r3cev/corda/netmap/NetworkMapVisualiser.kt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/network-simulator/src/main/kotlin/com/r3cev/corda/netmap/NetworkMapVisualiser.kt b/network-simulator/src/main/kotlin/com/r3cev/corda/netmap/NetworkMapVisualiser.kt index 694acad20a..2cc862ab6c 100644 --- a/network-simulator/src/main/kotlin/com/r3cev/corda/netmap/NetworkMapVisualiser.kt +++ b/network-simulator/src/main/kotlin/com/r3cev/corda/netmap/NetworkMapVisualiser.kt @@ -223,14 +223,7 @@ class NetworkMapVisualiser : Application() { private fun reloadStylesheet(stage: Stage) { stage.scene.stylesheets.clear() - - // TODO: Improve path resolution to avoid hardcoding a specific user directory. - // Enable hot reload without needing to rebuild. - val mikesCSS = "/Users/mike/Source/R3/r3dlg-prototyping/network-explorer/src/main/resources/com/r3cev/corda/netmap/styles.css" - if (Files.exists(Paths.get(mikesCSS))) - stage.scene.stylesheets.add("file://$mikesCSS") - else - stage.scene.stylesheets.add(NetworkMapVisualiser::class.java.getResource("styles.css").toString()) + stage.scene.stylesheets.add(NetworkMapVisualiser::class.java.getResource("styles.css").toString()) } private fun bindSidebar() {