From 034907c37a1aec48c11575208df0e363614191f8 Mon Sep 17 00:00:00 2001 From: ChengJie1053 <18033291053@163.com> Date: Mon, 4 Sep 2023 20:51:52 +0800 Subject: [PATCH] HttpBmlClient delete useless code --- .../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,