From 52566eec9b1c3baef4708acd8c2bb3ebd6ce8b44 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Thu, 29 Jun 2023 15:13:29 +0100 Subject: [PATCH] clean up comments --- apps/remix-ide/src/app/tabs/analysis-tab.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/apps/remix-ide/src/app/tabs/analysis-tab.js b/apps/remix-ide/src/app/tabs/analysis-tab.js index 69dece2eb5..250cd482b3 100644 --- a/apps/remix-ide/src/app/tabs/analysis-tab.js +++ b/apps/remix-ide/src/app/tabs/analysis-tab.js @@ -49,14 +49,6 @@ class AnalysisTab extends ViewPlugin { this.event.register('staticAnaysisWarning', (count) => { let payloadType = '' - - // this.hints && this.hints.length > 0 ? this.hints.forEach(hint => { - // if (hint.type === 'error') { - // payloadType = 'error' - // } else if (hint.type === 'warning' && payloadType !== 'error') { - // payloadType = 'warning' - // } - // }) : payloadType = 'warning' const error = this.hints.find(hint => hint.type === 'error') const warning = this.hints.find(hints => hints.type === 'warning') if (error) { @@ -66,7 +58,6 @@ class AnalysisTab extends ViewPlugin { } if (count > 0) { - // this.emit('statusChanged', { key: count, title: `${count} warning${count === 1 ? '' : 's'}`, type: payloadType }) this.emit('statusChanged', { key: count, title: payloadType === 'error' ? `You have some problem${count === 1 ? '' : 's'}` : 'You have some warnings', type: payloadType }) } else if (count === 0) { this.emit('statusChanged', { key: 'succeed', title: 'no warnings or errors', type: 'success' })