diff options
author | Cas <6506529+ThaUnknown@users.noreply.github.com> | 2021-06-30 06:19:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-30 06:19:03 +0300 |
commit | 2bf6cf42e09c448cab0dddcd74ea9a49dc3f18a0 (patch) | |
tree | 66b0879597c008da2047820678860ccd879119dd /index.js | |
parent | eb3aeff9cd17a85dc87f6fadee12d3c89e28d65b (diff) |
fix: remove deprecated functionality (#2118)
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 20 |
1 files changed, 1 insertions, 19 deletions
@@ -83,19 +83,7 @@ class WebTorrent extends EventEmitter { if (this.tracker) { if (typeof this.tracker !== 'object') this.tracker = {} - if (opts.rtcConfig) { - // TODO: remove in v1 - console.warn('WebTorrent: opts.rtcConfig is deprecated. Use opts.tracker.rtcConfig instead') - this.tracker.rtcConfig = opts.rtcConfig - } - if (opts.wrtc) { - // TODO: remove in v1 - console.warn('WebTorrent: opts.wrtc is deprecated. Use opts.tracker.wrtc instead') - this.tracker.wrtc = opts.wrtc - } - if (global.WRTC && !this.tracker.wrtc) { - this.tracker.wrtc = global.WRTC - } + if (global.WRTC && !this.tracker.wrtc) this.tracker.wrtc = global.WRTC } if (typeof ConnPool === 'function') { @@ -197,12 +185,6 @@ class WebTorrent extends EventEmitter { return null } - // TODO: remove in v1 - download (torrentId, opts, ontorrent) { - console.warn('WebTorrent: client.download() is deprecated. Use client.add() instead') - return this.add(torrentId, opts, ontorrent) - } - /** * Start downloading a new torrent. Aliased as `client.download`. * @param {string|Buffer|Object} torrentId |