From 9ac9e44f734efae94b6d793e64136f42176cefe7 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Wed, 14 Jun 2023 17:12:15 +0100 Subject: [PATCH] clean up commented out code and dead code as well --- apps/remix-ide/src/app/tabs/analysis-tab.js | 1 - .../src/lib/remix-ui-static-analyser.tsx | 14 -------------- 2 files changed, 15 deletions(-) diff --git a/apps/remix-ide/src/app/tabs/analysis-tab.js b/apps/remix-ide/src/app/tabs/analysis-tab.js index e5d9086253..a15c15a779 100644 --- a/apps/remix-ide/src/app/tabs/analysis-tab.js +++ b/apps/remix-ide/src/app/tabs/analysis-tab.js @@ -30,7 +30,6 @@ class AnalysisTab extends ViewPlugin { this.registry = Registry.getInstance() this.element = document.createElement('div') this.element.setAttribute('id', 'staticAnalyserView') - this.errorCount = 0 this._components = {} this._components.registry = this.registry this._deps = { diff --git a/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx b/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx index 0769df4f60..603b87ad08 100644 --- a/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx +++ b/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx @@ -116,13 +116,6 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { await run(state.data, state.source, state.file, state, props, isSupportedVersion, showSlither, categoryIndex, groupedModules, runner,_paq, message, showWarnings, allWarnings, warningContainer,calculateWarningStateEntries, warningState, setHints, hints, setSlitherWarnings, setSsaWarnings, slitherEnabled, setStartAnalysis) } props.event.trigger('staticAnaysisWarning', []) - // if (basicEnabled) { - // if (state.data !== null) { - // runAnalysis().catch(console.error); - // } - // } else { - // props.event.trigger('staticAnaysisWarning', []) - // } return () => { } }, [state]) @@ -387,13 +380,6 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { const hintErrors = hints.filter(hint => hint.type === 'error') const noLibSlitherWarnings = slitherWarnings.filter(w => !w.options.isLibrary) const slitherErrors = noLibSlitherWarnings.filter(slitherError => slitherError.options.type === 'error') - // const noLibsRemixWarnings = ssaWarnings.filter(w => !w.options.isLibrary) - // const groupedWarnings = ssaWarnings.reduce((resultingObject, warning) => { - // if (!resultingObject[warning.warningModuleName]) resultingObject[warning.warningModuleName] = [] - // resultingObject[warning.warningModuleName].push(warning) - // return resultingObject - // }, {}) - // console.log({ slitherWarnings, noLibsRemixWarnings, ssaWarnings, groupedWarnings }) const tabKeys = [ {