Remove unused function
parent
65f47d4b8d
commit
dd6016e855
|
|
@ -56,10 +56,6 @@ if ('StatusLogger' in config)
|
||||||
// @type {Array<mediasoup.Worker>}
|
// @type {Array<mediasoup.Worker>}
|
||||||
const mediasoupWorkers = [];
|
const mediasoupWorkers = [];
|
||||||
|
|
||||||
// Index of next mediasoup Worker to use.
|
|
||||||
// @type {Number}
|
|
||||||
let nextMediasoupWorkerIdx = 0;
|
|
||||||
|
|
||||||
// Map of Room instances indexed by roomId.
|
// Map of Room instances indexed by roomId.
|
||||||
const rooms = new Map();
|
const rooms = new Map();
|
||||||
|
|
||||||
|
|
@ -639,19 +635,6 @@ async function runMediasoupWorkers()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get next mediasoup Worker.
|
|
||||||
*/
|
|
||||||
function getMediasoupWorker()
|
|
||||||
{
|
|
||||||
const worker = mediasoupWorkers[nextMediasoupWorkerIdx];
|
|
||||||
|
|
||||||
if (++nextMediasoupWorkerIdx === mediasoupWorkers.length)
|
|
||||||
nextMediasoupWorkerIdx = 0;
|
|
||||||
|
|
||||||
return worker;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a Room instance (or create one if it does not exist).
|
* Get a Room instance (or create one if it does not exist).
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue