Skip to content

Commit

Permalink
fix: Removed unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrekPKP committed May 28, 2022
1 parent e9348db commit 252869c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/music_service/youtube_service.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use gtk::subclass::prelude::ObjectSubclassIsExt;
use serde::Deserialize;
use crate::{API_YOUTUBE_GET_PLAYLIST_ITEMS_URL, API_YOUTUBE_GET_PLAYLISTS_URL, CONFIG};
use crate::{API_YOUTUBE_GET_PLAYLIST_ITEMS_URL, API_YOUTUBE_GET_PLAYLISTS_URL};
use crate::music_object::{MusicData, MusicObject};
use crate::music_service::MusicServiceExt;
use async_trait::async_trait;
Expand Down
2 changes: 0 additions & 2 deletions src/temp_data.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use std::fs;
use gtk::subclass::prelude::ObjectSubclassIsExt;
use crate::{CONFIG, MusicData};
use crate::music_object::MusicObject;
use crate::utils::get_temp_music_file_path;

pub struct TempData {
Expand Down
3 changes: 1 addition & 2 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ use std::cell::RefCell;
use crate::config::{ConfigMusic, ConfigMusicService};
use crate::crab_tabs::imp::CrabTab;
use crate::music_object::MusicObject;
use crate::{Window, PLACEHOLDER_MUSIC, PLACEHOLDER_PROGRAMS, DATA_MUSIC_YOUTUBE_TEMP_FILE, CONFIG, MusicData, Config, TEMP_DATA};
use crate::{Window, PLACEHOLDER_MUSIC, PLACEHOLDER_PROGRAMS, DATA_MUSIC_YOUTUBE_TEMP_FILE, MusicData, TEMP_DATA};
use gtk::gio::{AppInfo};
use gtk::glib::{clone, MainContext};
use gtk::prelude::*;
use gtk::subclass::prelude::*;
use gtk::{gio, CustomFilter, FilterListModel, SingleSelection};
use std::process::exit;
use crate::temp_data::TempData;

pub fn open_app(app_info: &AppInfo, window: &Window) {
let context = gtk::Window::new().display().app_launch_context();
Expand Down

0 comments on commit 252869c

Please sign in to comment.