remove old settings file

pull/1/head
Iuri Matias 5 years ago
parent 5c8c825503
commit a32ed43752
  1. 37
      src/app/tabs/runTab/model/settings.js
  2. 2
      src/app/udapp/run-tab.js

@ -1,37 +0,0 @@
// var ethJSUtil = require('ethereumjs-util')
// var Personal = require('web3-eth-personal')
var remixLib = require('remix-lib')
// var Web3 = require('web3')
// const addTooltip = require('../../../ui/tooltip')
var EventManager = remixLib.EventManager
class Settings {
constructor (blockchain, executionContext, udapp) {
this.blockchain = blockchain
this.executionContext = executionContext
this.udapp = udapp
this.event = new EventManager()
// this.blockchain.event.register('transactionExecuted', (error, from, to, data, lookupOnly, txResult) => {
// this.event.trigger('transactionExecuted', [error, from, to, data, lookupOnly, txResult])
// })
// this.blockchain.event.register('contextChanged', (context, silent) => {
// this.event.trigger('contextChanged', [context, silent])
// })
// this.blockchain.event.register('addProvider', (network) => {
// this.event.trigger('addProvider', [network])
// })
// this.blockchain.event.register('removeProvider', (name) => {
// this.event.trigger('removeProvider', [name])
// })
// this.networkcallid = 0
}
}
module.exports = Settings

@ -9,7 +9,6 @@ const EventManager = require('../../lib/events')
const Card = require('../ui/card') const Card = require('../ui/card')
const css = require('../tabs/styles/run-tab-styles') const css = require('../tabs/styles/run-tab-styles')
// const Settings = require('../tabs/runTab/model/settings.js')
const SettingsUI = require('../tabs/runTab/settings.js') const SettingsUI = require('../tabs/runTab/settings.js')
const Recorder = require('../tabs/runTab/model/recorder.js') const Recorder = require('../tabs/runTab/model/recorder.js')
const RecorderUI = require('../tabs/runTab/recorder.js') const RecorderUI = require('../tabs/runTab/recorder.js')
@ -124,7 +123,6 @@ export class RunTab extends LibraryPlugin {
} }
renderSettings (udapp) { renderSettings (udapp) {
// var settings = new Settings(this.blockchain, this.executionContext, udapp)
this.settingsUI = new SettingsUI(this.blockchain, this.networkModule) this.settingsUI = new SettingsUI(this.blockchain, this.networkModule)
this.settingsUI.event.register('clearInstance', () => { this.settingsUI.event.register('clearInstance', () => {

Loading…
Cancel
Save