From fda2079611bb35a111dfda3266c7fa4850517d19 Mon Sep 17 00:00:00 2001 From: Clinton Alexander Date: Mon, 25 Jul 2016 10:31:55 +0100 Subject: [PATCH] Removed dead code. --- .../r3corda/demos/api/InterestRateSwapAPI.kt | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/src/main/kotlin/com/r3corda/demos/api/InterestRateSwapAPI.kt b/src/main/kotlin/com/r3corda/demos/api/InterestRateSwapAPI.kt index 2b680086e9..964c35136a 100644 --- a/src/main/kotlin/com/r3corda/demos/api/InterestRateSwapAPI.kt +++ b/src/main/kotlin/com/r3corda/demos/api/InterestRateSwapAPI.kt @@ -120,24 +120,4 @@ class InterestRateSwapAPI(val services: ServiceHub) { services.invokeProtocolAsync(ExitServerProtocol.Broadcast::class.java, 83).get() return Response.ok().build() } - - //@GET - //@Path("web/{filepath: (.*(.html|.css|.js|.png|.jpg|.gif|.json|ttf|woff|woff2))?}") - //fun serveWeb(@PathParam("filepath") filepath: String) : Response { - // try { - // val resourcePath = if(filepath == "") { "index.html" } else { filepath } - // val resource = javaClass.getResourceAsStream("irswebdemo/" + resourcePath) - // if(resource != null) { - // val cacheControl = CacheControl(); - // cacheControl.maxAge = 0 - // logger.info("200: serving ${filepath}") - // return Response.ok(resource).cacheControl(cacheControl).build() - // } - // logger.info("404: could not find: ${filepath}") - // return Response.status(Response.Status.NOT_FOUND).build() - // } catch(ex: Exception) { - // logger.info("500: error when serving: ${filepath}. ${ex.toString()}") - // return Response.status(Response.Status.INTERNAL_SERVER_ERROR).build() - // } - //} }