diff --git a/main/menu.js b/main/menu.js index acf9010e..868d2258 100644 --- a/main/menu.js +++ b/main/menu.js @@ -70,11 +70,6 @@ function showWebTorrentWindow () { windows.webtorrent.webContents.openDevTools({ detach: true }) } -function addFakeDevice (device) { - log('addFakeDevice %s', device) - windows.main.send('addFakeDevice', device) -} - function onWindowShow () { log('onWindowShow') getMenuItem('Full Screen').enabled = true @@ -263,17 +258,6 @@ function getAppMenuTemplate () { ? 'Alt+Command+P' : 'Ctrl+Shift+P', click: showWebTorrentWindow - }, - { - type: 'separator' - }, - { - label: 'Add Fake Airplay', - click: () => addFakeDevice('airplay') - }, - { - label: 'Add Fake Chromecast', - click: () => addFakeDevice('chromecast') } ] } diff --git a/renderer/index.js b/renderer/index.js index 843d3e6c..2cf28fa8 100644 --- a/renderer/index.js +++ b/renderer/index.js @@ -4,7 +4,6 @@ var cfg = require('application-config')('WebTorrent') var concat = require('concat-stream') var dragDrop = require('drag-drop') var electron = require('electron') -var EventEmitter = require('events') var fs = require('fs') var mainLoop = require('main-loop') var path = require('path') @@ -403,13 +402,6 @@ function setupIpc () { update() }) - ipcRenderer.on('addFakeDevice', function (e, device) { - var player = new EventEmitter() - player.play = (networkURL) => console.log(networkURL) - state.devices[device] = player - update() - }) - ipcRenderer.on('wt-infohash', (e, ...args) => torrentInfoHash(...args)) ipcRenderer.on('wt-metadata', (e, ...args) => torrentMetadata(...args)) ipcRenderer.on('wt-done', (e, ...args) => torrentDone(...args))