From 2bf6cf42e09c448cab0dddcd74ea9a49dc3f18a0 Mon Sep 17 00:00:00 2001 From: Cas <6506529+ThaUnknown@users.noreply.github.com> Date: Wed, 30 Jun 2021 05:19:03 +0200 Subject: fix: remove deprecated functionality (#2118) --- lib/torrent.js | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib') diff --git a/lib/torrent.js b/lib/torrent.js index 24e7b44..1f0be5b 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -193,12 +193,6 @@ class Torrent extends EventEmitter { return numConns } - // TODO: remove in v1 - get swarm () { - console.warn('WebTorrent: `torrent.swarm` is deprecated. Use `torrent` directly instead.') - return this - } - _onTorrentId (torrentId) { if (this.destroyed) return -- cgit v1.2.3