From ced3e1dae463d447e022ad46088bfe2014761a19 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Thu, 9 Sep 2021 11:09:12 +0200 Subject: [PATCH] rm unneeded function --- apps/remix-ide/src/app/files/dgitProvider.js | 12 +----------- apps/remix-ide/src/remixAppManager.js | 1 - replacemodules.sh | 4 ---- 3 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 replacemodules.sh diff --git a/apps/remix-ide/src/app/files/dgitProvider.js b/apps/remix-ide/src/app/files/dgitProvider.js index d1a071f273..e0d40f38d3 100644 --- a/apps/remix-ide/src/app/files/dgitProvider.js +++ b/apps/remix-ide/src/app/files/dgitProvider.js @@ -21,7 +21,7 @@ const profile = { description: '', icon: 'assets/img/fileManager.webp', version: '0.0.1', - methods: ['delay', 'init', 'localStorageUsed', 'addremote', 'delremote', 'remotes', 'fetch', 'clone', 'export', 'import', 'status', 'log', 'commit', 'add', 'remove', 'rm', 'lsfiles', 'readblob', 'resolveref', 'branches', 'branch', 'checkout', 'currentbranch', 'push', 'pin', 'pull', 'pinList', 'unPin', 'setIpfsConfig', 'zip', 'setItem', 'getItem'], + methods: ['init', 'localStorageUsed', 'addremote', 'delremote', 'remotes', 'fetch', 'clone', 'export', 'import', 'status', 'log', 'commit', 'add', 'remove', 'rm', 'lsfiles', 'readblob', 'resolveref', 'branches', 'branch', 'checkout', 'currentbranch', 'push', 'pin', 'pull', 'pinList', 'unPin', 'setIpfsConfig', 'zip', 'setItem', 'getItem'], kind: 'file-system' } class DGitProvider extends Plugin { @@ -70,16 +70,6 @@ class DGitProvider extends Plugin { } } - async delay (num) { - console.log('delay called', num) - return new Promise((resolve, reject) => { - setTimeout(() => { - console.log('delay resolved', num) - resolve(true) - }, 10000) - }) - } - async init (input) { await git.init({ ...await this.getGitConfig(), diff --git a/apps/remix-ide/src/remixAppManager.js b/apps/remix-ide/src/remixAppManager.js index 454147a96f..8f4187cc98 100644 --- a/apps/remix-ide/src/remixAppManager.js +++ b/apps/remix-ide/src/remixAppManager.js @@ -117,7 +117,6 @@ export class RemixAppManager extends PluginManager { } return true }) - localStorage.setItem('plugins-directory', JSON.stringify(plugins)) } catch (e) { console.log('getting plugins list from localstorage...') diff --git a/replacemodules.sh b/replacemodules.sh deleted file mode 100644 index ddd90c0ed3..0000000000 --- a/replacemodules.sh +++ /dev/null @@ -1,4 +0,0 @@ -cp -R /Volumes/butbut/code/testp/remix-plugin/dist/packages/engine/core/lib/* ./node_modules/@remixproject/engine/lib/ -cp -R /Volumes/butbut/code/testp/remix-plugin/dist/packages/utils/lib/* ./node_modules/@remixproject/plugin-utils/lib/ -cp -R /Volumes/butbut/code/testp/remix-plugin/dist/packages/utils/index* ./node_modules/@remixproject/plugin-utils/ -cp -R /Volumes/butbut/code/testp/remix-plugin/dist/packages/plugin/core/lib/* ./node_modules/@remixproject/plugin/lib/ \ No newline at end of file