clean up commented out code and dead code as well

pull/3779/head
Joseph Izang 1 year ago
parent ae9e339546
commit e7cf7ee190
  1. 1
      apps/remix-ide/src/app/tabs/analysis-tab.js
  2. 14
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx

@ -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 = {

@ -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 = [
{

Loading…
Cancel
Save