From 0c68fb5da07f53602975e1b3af1195a6f10264eb Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Wed, 24 Mar 2021 16:18:11 +0100 Subject: [PATCH] cleanup redundant code and console --- apps/remix-ide/src/migrateFileSystem.js | 1 - .../workspace/src/lib/remix-ui-workspace.tsx | 30 ++++--------------- 2 files changed, 5 insertions(+), 26 deletions(-) diff --git a/apps/remix-ide/src/migrateFileSystem.js b/apps/remix-ide/src/migrateFileSystem.js index 2d912ac3cb..ab47956743 100644 --- a/apps/remix-ide/src/migrateFileSystem.js +++ b/apps/remix-ide/src/migrateFileSystem.js @@ -15,7 +15,6 @@ export default (fileProvider) => { fileProvider.set(path, content) // TODO https://github.com/ethereum/remix-ide/issues/2377 // fileStorage.remove(path) we don't want to remove it as we are still supporting the old version - console.log('file migrated', path) } }) fileStorageBrowserFS.set(flag, 'done') diff --git a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx index 42328b25c7..dbde392b20 100644 --- a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx +++ b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx @@ -299,12 +299,6 @@ export const Workspace = (props: WorkspaceProps) => { ) } - // const handleWorkspaceSelect = (e) => { - // const value = e.target.value - - // setWorkspace(value) - // } - return (
{ title='Delete'> - setWorkspace(e.target.value)} className="form-control custom-select"> { state.workspaces - .map((folder) => { - return + .map((folder, index) => { + return }) } - - { state.workspaces.length <= 0 && } + + { state.workspaces.length <= 0 && }
@@ -404,20 +398,6 @@ export const Workspace = (props: WorkspaceProps) => { } } -
- { false && - } -