Skip to content

Commit

Permalink
remove useless listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
owencraston committed Mar 24, 2023
1 parent f440825 commit e66cb41
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions app/core/Engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,6 @@ class Engine {
this.configureControllersOnNetworkChange();
this.startPolling();
this.handleVaultBackup();
this.snapsListeners();
Engine.instance = this;
}

Expand All @@ -678,46 +677,6 @@ class Engine {
);
}

snapsListeners() {
this.controllerMessenger.subscribe(
`${this.snapController}:snapAdded`,
(snap, svgIcon = null) => {
const {
manifest: { proposedName },
} = snap;
console.log('Snaps/ snapAdded', proposedName);
},
);

this.controllerMessenger.subscribe(
`${this.snapController}:snapInstalled`,
(truncatedSnap) => {
console.log('Snaps/ snapInstalled', truncatedSnap);
},
);

this.controllerMessenger.subscribe(
`${this.snapController}:snapUpdated`,
(newSnap, oldVersion) => {
console.log('Snaps/ snapUpdated', newSnap, oldVersion);
},
);

this.controllerMessenger.subscribe(
`${this.snapController}:snapTerminated`,
(truncatedSnap) => {
console.log('Snaps/ snapTerminated', truncatedSnap);
},
);

this.controllerMessenger.subscribe(
`${this.snapController}:snapRemoved`,
(truncatedSnap) => {
console.log('Snaps/ snapRemoved', truncatedSnap);
},
);
}

startPolling() {
const {
NftDetectionController,
Expand Down

0 comments on commit e66cb41

Please sign in to comment.