Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCas <6506529+ThaUnknown@users.noreply.github.com>2021-06-30 06:19:03 +0300
committerGitHub <noreply@github.com>2021-06-30 06:19:03 +0300
commit2bf6cf42e09c448cab0dddcd74ea9a49dc3f18a0 (patch)
tree66b0879597c008da2047820678860ccd879119dd /index.js
parenteb3aeff9cd17a85dc87f6fadee12d3c89e28d65b (diff)
fix: remove deprecated functionality (#2118)
Diffstat (limited to 'index.js')
-rw-r--r--index.js20
1 files changed, 1 insertions, 19 deletions
diff --git a/index.js b/index.js
index 74e29a4..e4a315b 100644
--- a/index.js
+++ b/index.js
@@ -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