From be30184c7bcad3f8f8bb80206226fb33023a45a5 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Thu, 22 Dec 2022 18:20:42 +0100 Subject: [PATCH] generateUML function refactor --- .../solidity-compiler/src/lib/compiler-container.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx b/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx index fa94220b45..b9dcac066d 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx +++ b/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx @@ -738,11 +738,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => { try { const currentFile = api.currentFile const ast = parser.parse(api.getCompilationResult().source.sources[currentFile].content) - const result = convertAST2UmlClasses(ast, currentFile) - const converted = convertUmlClasses2Dot(result) - const svgResult = vizRenderStringSync(converted) - console.log({ result }) - console.log({ converted }) + const svgResult = vizRenderStringSync(convertUmlClasses2Dot(convertAST2UmlClasses(ast, currentFile))) console.log({ svgResult }) } catch (error) { console.log({ error })