From da3500d392ce63287517242a120081a3575c803c Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Fri, 4 Mar 2016 01:26:04 -0800 Subject: [PATCH] simplify deleteTorrent() --- main/index.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/main/index.js b/main/index.js index 9ba00550..40724bda 100644 --- a/main/index.js +++ b/main/index.js @@ -255,13 +255,7 @@ function openPlayer (torrent) { } function deleteTorrent (torrent) { - console.log('Deleting %o', torrent) - torrent.isDeleting = true - update() - state.view.client.remove(torrent.infoHash, function () { - console.log('Deleted torrent ' + torrent.infoHash) - update() - }) + torrent.destroy(update) } function openChromecast (torrent) {