Skip to content

Commit

Permalink
removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
bergeron committed Feb 8, 2024
1 parent 2ad1f4f commit 5e6b428
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions app/scripts/controllers/detect-tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,7 @@ export default class DetectTokensController extends StaticIntervalPollingControl
this.useTokenDetection =
this.preferences?.store.getState().useTokenDetection;
this.selectedAddress = getCurrentSelectedAccount().address;
this.tokenAddresses = this.tokensController?.state.tokens.map((token) => {
return token.address;
});
this.setIntervalLength(interval);
this.hiddenTokens = this.tokensController?.state.ignoredTokens;
this.detectedTokens = this.tokensController?.state.detectedTokens;
this.chainId = this.getChainIdFromNetworkStore();
this._trackMetaMetricsEvent = trackMetaMetricsEvent;

Expand Down Expand Up @@ -101,15 +96,6 @@ export default class DetectTokensController extends StaticIntervalPollingControl
}
});

tokensController?.subscribe(
({ tokens = [], ignoredTokens = [], detectedTokens = [] }) => {
this.tokenAddresses = tokens.map((token) => {
return token.address;
});
this.hiddenTokens = ignoredTokens;
this.detectedTokens = detectedTokens;
},
);
messenger.subscribe('NetworkController:stateChange', () => {
if (this.chainId !== this.getChainIdFromNetworkStore()) {
const chainId = this.getChainIdFromNetworkStore();
Expand Down

0 comments on commit 5e6b428

Please sign in to comment.