diff --git a/apps/remix-ide/src/app/plugins/parser/code-parser.tsx b/apps/remix-ide/src/app/plugins/parser/code-parser.tsx index c2259ffa96..effdb3f66a 100644 --- a/apps/remix-ide/src/app/plugins/parser/code-parser.tsx +++ b/apps/remix-ide/src/app/plugins/parser/code-parser.tsx @@ -2,20 +2,16 @@ import { Plugin } from '@remixproject/engine' import { sourceMappingDecoder } from '@remix-project/remix-debug' import { CompilerAbstract } from '@remix-project/remix-solidity' -import { AstNode, CompilationError, CompilationResult, CompilationSource } from '@remix-project/remix-solidity' -import { helper } from '@remix-project/remix-solidity' +import { CompilationResult } from '@remix-project/remix-solidity' import CodeParserGasService from './services/code-parser-gas-service' import CodeParserCompiler from './services/code-parser-compiler' import CodeParserAntlrService from './services/code-parser-antlr-service' -import CodeParserNodeHelper from './services/code-parser-node-helper' import React from 'react' import { Profile } from '@remixproject/plugin-utils' import { ContractDefinitionAstNode, EventDefinitionAstNode, FunctionCallAstNode, FunctionDefinitionAstNode, IdentifierAstNode, ImportDirectiveAstNode, ModifierDefinitionAstNode, SourceUnitAstNode, StructDefinitionAstNode, VariableDeclarationAstNode } from 'dist/libs/remix-analyzer/src/types' import { lastCompilationResult, RemixApi } from '@remixproject/plugin-api' import { antlr } from './types' import { ParseResult } from './types/antlr-types' -import { ConfigPlugin } from '../config' - const profile: Profile = { name: 'codeParser', @@ -74,7 +70,6 @@ export class CodeParser extends Plugin { gasService: CodeParserGasService compilerService: CodeParserCompiler antlrService: CodeParserAntlrService - nodeHelper: CodeParserNodeHelper parseSolidity: (text: string) => Promise getLastNodeInLine: (ast: string) => Promise @@ -97,7 +92,6 @@ export class CodeParser extends Plugin { this.gasService = new CodeParserGasService(this) this.compilerService = new CodeParserCompiler(this) this.antlrService = new CodeParserAntlrService(this) - this.nodeHelper = new CodeParserNodeHelper(this) this.parseSolidity = this.antlrService.parseSolidity.bind(this.antlrService) this.getLastNodeInLine = this.antlrService.getLastNodeInLine.bind(this.antlrService) diff --git a/apps/remix-ide/src/app/plugins/parser/services/code-parser-node-helper.ts b/apps/remix-ide/src/app/plugins/parser/services/code-parser-node-helper.ts deleted file mode 100644 index e818a28a99..0000000000 --- a/apps/remix-ide/src/app/plugins/parser/services/code-parser-node-helper.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { CodeParser } from "../code-parser" - -export default class CodeParserNodeHelper { - plugin: CodeParser - constructor(plugin: CodeParser) { - this.plugin = plugin - } -} \ No newline at end of file