mirror of https://github.com/embarklabs/embark.git
chore(@embark/code-generator): remove unused code
This commit is contained in:
parent
de58cab475
commit
639b8d8ebd
|
@ -47,15 +47,6 @@ class CodeGenerator {
|
|||
cb(providerCode);
|
||||
});
|
||||
|
||||
// new events
|
||||
this.events.setCommandHandler('code-vanila', function(cb) {
|
||||
self.events.request("contracts:list", (_err, contractsList) => {
|
||||
let vanillaABI = self.generateABI(contractsList, {useEmbarkJS: false});
|
||||
let contractsJSON = self.generateContractsJSON(contractsList);
|
||||
cb(vanillaABI, contractsJSON);
|
||||
});
|
||||
});
|
||||
|
||||
this.events.setCommandHandler('code', function(cb) {
|
||||
self.events.request("contracts:list", (_err, contractsList) => {
|
||||
let embarkJSABI = self.generateABI(contractsList, {useEmbarkJS: true});
|
||||
|
@ -64,22 +55,6 @@ class CodeGenerator {
|
|||
});
|
||||
});
|
||||
|
||||
this.events.setCommandHandler('code-contracts-vanila', function(cb) {
|
||||
self.events.request("contracts:list", (_err, contractsList) => {
|
||||
let vanillaContractsABI = self.generateContracts(contractsList, false, true, false);
|
||||
let contractsJSON = self.generateContractsJSON(contractsList);
|
||||
cb(vanillaContractsABI, contractsJSON);
|
||||
});
|
||||
});
|
||||
|
||||
this.events.setCommandHandler('code-vanila-deployment', function(cb) {
|
||||
self.events.request("contracts:list", (_err, contractsList) => {
|
||||
let vanillaABI = self.generateABI(contractsList, {useEmbarkJS: false, deployment: true});
|
||||
let contractsJSON = self.generateContractsJSON(contractsList);
|
||||
cb(vanillaABI, contractsJSON);
|
||||
});
|
||||
});
|
||||
|
||||
this.events.setCommandHandler('code-generator:web3js', function(cb) {
|
||||
self.buildWeb3JS(cb);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue