1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00

Remove unused NotificationManager#closePopup (#8530)

This commit is contained in:
Whymarrh Whitby 2020-05-05 21:02:29 -02:30 committed by GitHub
parent 3d0ffc50f8
commit ceb5970afd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,18 +63,6 @@ export default class NotificationManager {
}
}
/**
* Closes a MetaMask notification if it window exists.
*
*/
async closePopup () {
const popup = this._getPopup()
if (!popup) {
return
}
await this.platform.removeWindow(popup.id)
}
/**
* Checks all open MetaMask windows, and returns the first one it finds that is a notification window (i.e. has the
* type 'popup')