Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
refactor: remove PlatformRegistry struct and its implementation
Tonhob5d89350b62c
diff --git a/src-tauri/src/core/registry.rs b/src-tauri/src/core/registry.rsdeleted file mode 100644index c1a26216..00000000--- a/src-tauri/src/core/registry.rs+++ /dev/null@@ -1,32 +0,0 @@-use std::sync::Arc;--use crate::platforms::traits::PlatformDownloader;--pub struct PlatformRegistry {- platforms: Vec<Arc<dyn PlatformDownloader>>,-}--impl PlatformRegistry {- pub fn new() -> Self {- Self {- platforms: Vec::new(),- }- }-- pub fn register(&mut self, platform: Arc<dyn PlatformDownloader>) {- self.platforms.push(platform);- }-- pub fn find_platform(&self, url: &str) -> Option<Arc<dyn PlatformDownloader>> {- self.platforms- .iter()- .find(|p| p.can_handle(url))- .cloned()- }-}--impl Default for PlatformRegistry {- fn default() -> Self {- Self::new()- }-}