From 9ce1d4e64c5b1d2b375d0fe42f34874306b73a92 Mon Sep 17 00:00:00 2001 From: Salah Aldeen Al Saleh Date: Fri, 29 Oct 2021 14:20:20 -0700 Subject: [PATCH] remove unused function (#2283) --- .../troubleshoot/AnalyzerInsights.jsx | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/web/src/components/troubleshoot/AnalyzerInsights.jsx b/web/src/components/troubleshoot/AnalyzerInsights.jsx index f6646dfd66..0291af6692 100644 --- a/web/src/components/troubleshoot/AnalyzerInsights.jsx +++ b/web/src/components/troubleshoot/AnalyzerInsights.jsx @@ -35,7 +35,6 @@ export class AnalyzerInsights extends React.Component { } componentDidMount() { - this.testApi(); let isError, isWarn; if (this.props.insights) { isError = this.props.insights.some(i => i.severity === "error"); @@ -52,22 +51,6 @@ export class AnalyzerInsights extends React.Component { this.checkBundleStatus(); } - testApi = async () => { - this.setState({ sendingBundle: true, sendingBundleErrMsg: "", downloadBundleErrMsg: "" }); - fetch(`${window.env.API_ENDPOINT}/troubleshoot/app/qakots/supportbundle/2041y5f3xzi5ewauoaiqogyccme/pod?podNamespace=default&podName=sqs-7449b544fc-mw4dx`, { - method: "GET", - headers: { - "Authorization": Utilities.getToken(), - } - }) - .then(async (result) => { - console.log(result) - }) - .catch(err => { - console.log(err); - }) - } - checkBundleStatus = () => { const { status, refetchSupportBundle, insights } = this.props; if (status === "uploaded" || status === "analyzing") {