chore: remove unused legacy stream_uri method

This commit is contained in:
Mitchell R 2026-05-11 11:06:24 +02:00
parent 29b7e30844
commit 0cd508a2ec

View file

@ -104,16 +104,4 @@ impl BundleCamera {
Some((uri, badge))
}
/// Legacy single-arg stream picker (no heuristic).
pub fn stream_uri(&self, selector: Option<&str>) -> Option<&str> {
let sel = selector.unwrap_or("auto");
match sel {
"main" => self.streams.iter().find(|s| s.role == "main"),
"sub" => self.streams.iter().find(|s| s.role == "sub"),
_ => self.streams.iter().find(|s| s.role == "main")
.or_else(|| self.streams.first()),
}
.map(|s| s.rtsp_uri.as_str())
.or(self.rtsp_url.as_deref())
}
}