Removed dead code.

This commit is contained in:
Clinton Alexander 2016-07-25 10:31:55 +01:00
parent 6505923a78
commit fda2079611

View File

@ -120,24 +120,4 @@ class InterestRateSwapAPI(val services: ServiceHub) {
services.invokeProtocolAsync<Boolean>(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()
// }
//}
}