Skip to content

Commit

Permalink
Merge pull request #827 from nervosnetwork/delete-router
Browse files Browse the repository at this point in the history
refactor(neuron-wallet): Delete Router class
  • Loading branch information
ashchan authored Aug 5, 2019
2 parents 92b5e92 + df65c6d commit 9fb258a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
7 changes: 0 additions & 7 deletions packages/neuron-wallet/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { debounceTime } from 'rxjs/operators'

import i18n from 'utils/i18n'
import { updateApplicationMenu } from 'utils/application-menu'
import Router from 'router'
import WindowManager from 'models/window-manager'
import createMainWindow from 'startup/create-main-window'
import createSyncBlockTask from 'startup/sync-block-task/create'
Expand All @@ -15,12 +14,6 @@ import dataUpdateSubject from 'models/subjects/data-update'

const walletsService = WalletsService.getInstance()

const router = new Router()

Object.defineProperty(app, 'router', {
value: router,
})

const openWindow = () => {
if (!WindowManager.mainWindow) {
WindowManager.mainWindow = createMainWindow()
Expand Down
18 changes: 0 additions & 18 deletions packages/neuron-wallet/src/router.ts

This file was deleted.

0 comments on commit 9fb258a

Please sign in to comment.