Remove "Add Fake Airplay/Chromecast" menu items (#411)

This commit is contained in:
Feross Aboukhadijeh
2016-04-14 19:42:25 -07:00
parent af2ad46958
commit 5e6e5fce1e
2 changed files with 0 additions and 24 deletions

View File

@@ -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')
}
]
}

View File

@@ -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))