Skip to content

Commit

Permalink
Remove some useless comments on AppState
Browse files Browse the repository at this point in the history
  • Loading branch information
viettranx committed Aug 26, 2018
1 parent a1d4924 commit c23a31a
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions app/AppStores/AppState.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,35 +79,6 @@ class AppState {
this.save()
}

// @action async syncWalletsFromDS() {
// const wallets = WalletDS.getWallets()

// const walletMap = wallets.reduce((_rs, w, i) => {
// const rs = _rs
// rs[w.address] = i
// return rs
// }, {})

// this.wallets.forEach((w) => {
// const index = walletMap[w.address]
// wallets[index] = w
// })

// this.wallets = wallets
// }

// @action async syncWallets() {
// WalletDS.saveWallets(this.wallets)
// }

// @action async removeWalletAndSync(wallet) {
// const address = typeof wallet === 'string' ? wallet : wallet.address
// this.wallets = this.wallets.filter(w => w.address !== address)
// this.syncWallets()
// }

// @action addNewWallet(wallet)

@action async syncAddressBooks() {
await AddressBookDS.getAddressBooks().then((_addressBooks) => {
const addressBooks = _addressBooks
Expand Down

0 comments on commit c23a31a

Please sign in to comment.