remove deprecated branch
This commit is contained in:
parent
559ca22e81
commit
f29dccf8bd
1 changed files with 0 additions and 11 deletions
|
|
@ -293,7 +293,6 @@ pub fn read_local_file_including_stdin(filename: &str) -> anyhow::Result<Vec<u8>
|
||||||
pub enum AddTorrent<'a> {
|
pub enum AddTorrent<'a> {
|
||||||
Url(Cow<'a, str>),
|
Url(Cow<'a, str>),
|
||||||
TorrentFileBytes(Bytes),
|
TorrentFileBytes(Bytes),
|
||||||
TorrentInfo(Box<TorrentMetaV1Owned>),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> AddTorrent<'a> {
|
impl<'a> AddTorrent<'a> {
|
||||||
|
|
@ -326,7 +325,6 @@ impl<'a> AddTorrent<'a> {
|
||||||
match self {
|
match self {
|
||||||
Self::Url(s) => s.into_owned().into_bytes().into(),
|
Self::Url(s) => s.into_owned().into_bytes().into(),
|
||||||
Self::TorrentFileBytes(b) => b,
|
Self::TorrentFileBytes(b) => b,
|
||||||
Self::TorrentInfo(..) => unimplemented!(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -863,15 +861,6 @@ impl Session {
|
||||||
AddTorrent::TorrentFileBytes(bytes) =>
|
AddTorrent::TorrentFileBytes(bytes) =>
|
||||||
torrent_from_bytes(bytes)
|
torrent_from_bytes(bytes)
|
||||||
.context("error decoding torrent")?
|
.context("error decoding torrent")?
|
||||||
,
|
|
||||||
AddTorrent::TorrentInfo(t) => {
|
|
||||||
// TODO: remove this branch entirely
|
|
||||||
ParsedTorrentFile{
|
|
||||||
info: *t,
|
|
||||||
info_bytes: Default::default(),
|
|
||||||
torrent_bytes: Default::default(),
|
|
||||||
}
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let trackers = torrent.info
|
let trackers = torrent.info
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue