From 8181efc1cf0807d6bca18df973e4db53580c4949 Mon Sep 17 00:00:00 2001 From: ChengJie1053 <18033291053@163.com> Date: Wed, 6 Sep 2023 10:27:31 +0800 Subject: [PATCH] HttpBmlClient delete useless code (#4898) --- .../apache/linkis/bml/client/impl/HttpBmlClient.scala | 9 --------- 1 file changed, 9 deletions(-) diff --git a/linkis-public-enhancements/linkis-pes-client/src/main/scala/org/apache/linkis/bml/client/impl/HttpBmlClient.scala b/linkis-public-enhancements/linkis-pes-client/src/main/scala/org/apache/linkis/bml/client/impl/HttpBmlClient.scala index be251d3b23..258b3feb9b 100644 --- a/linkis-public-enhancements/linkis-pes-client/src/main/scala/org/apache/linkis/bml/client/impl/HttpBmlClient.scala +++ b/linkis-public-enhancements/linkis-pes-client/src/main/scala/org/apache/linkis/bml/client/impl/HttpBmlClient.scala @@ -137,15 +137,6 @@ class HttpBmlClient( if (version != null) bmlDownloadAction.getParameters.asScala += "version" -> version bmlDownloadAction.setUser(user) val downloadResult = dwsClient.execute(bmlDownloadAction) - // val retIs = new ByteArrayInputStream(IOUtils.toString(bmlDownloadAction.getInputStream).getBytes("UTF-8")) - // if (downloadResult != null) { - // bmlDownloadAction.getResponse match { - // case r: CloseableHttpResponse => - // Utils.tryAndWarn(r.close()) - // case o: Any => - // info(s"Download response : ${o.getClass.getName} cannot close.") - // } - // } BmlDownloadResponse( isSuccess = true, bmlDownloadAction.getInputStream,