From c53ad56a6d0a85dae441639e9bfbc295246f563e Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Tue, 14 Aug 2018 11:18:23 +0300 Subject: [PATCH] Remove TODOs and FIXMEs They are either no longer relevant or just forgotten --- podcasts-data/src/errors.rs | 1 - podcasts-gtk/src/headerbar.rs | 1 - podcasts-gtk/src/utils.rs | 4 ---- podcasts-gtk/src/widgets/home_view.rs | 1 - 4 files changed, 7 deletions(-) diff --git a/podcasts-data/src/errors.rs b/podcasts-data/src/errors.rs index 3ddf9e8..64b20c9 100644 --- a/podcasts-data/src/errors.rs +++ b/podcasts-data/src/errors.rs @@ -47,7 +47,6 @@ pub enum DataError { #[fail(display = "Hyper Error: {}", _0)] HyperError(#[cause] hyper::Error), #[fail(display = "Failed to parse a url: {}", _0)] - // TODO: print the url too UrlError(#[cause] url::ParseError), #[fail(display = "TLS Error: {}", _0)] TLSError(#[cause] native_tls::Error), diff --git a/podcasts-gtk/src/headerbar.rs b/podcasts-gtk/src/headerbar.rs index 766df24..6deb7c4 100644 --- a/podcasts-gtk/src/headerbar.rs +++ b/podcasts-gtk/src/headerbar.rs @@ -18,7 +18,6 @@ use std::rc::Rc; use i18n::i18n; #[derive(Debug, Clone)] -// TODO: Factor out the hamburger menu // TODO: Make a proper state machine for the headerbar states pub(crate) struct Header { pub(crate) container: gtk::HeaderBar, diff --git a/podcasts-gtk/src/utils.rs b/podcasts-gtk/src/utils.rs index 57f65ac..c00ad8c 100644 --- a/podcasts-gtk/src/utils.rs +++ b/podcasts-gtk/src/utils.rs @@ -72,7 +72,6 @@ pub(crate) fn lazy_load( ) where T: IntoIterator + 'static, T::Item: 'static, - // FIXME: leaking a strong refference here C: IsA + ContainerExt + 'static, F: FnMut(T::Item) -> W + 'static, W: IsA + WidgetExt, @@ -337,8 +336,6 @@ pub(crate) fn on_import_clicked(window: >k::ApplicationWindow, sender: &Sender use glib::translate::ToGlib; use gtk::{FileChooserAction, FileChooserNative, FileFilter, ResponseType}; - // let dialog = FileChooserDialog::new(title, Some(&window), FileChooserAction::Open); - // TODO: It might be better to use a FileChooserNative widget. // Create the FileChooser Dialog let dialog = FileChooserNative::new( Some(i18n("Select the file from which to you want to import shows.").as_str()), @@ -361,7 +358,6 @@ pub(crate) fn on_import_clicked(window: >k::ApplicationWindow, sender: &Sender dialog.connect_response(clone!(sender => move |dialog, resp| { debug!("Dialog Response {}", resp); if resp == ResponseType::Accept.to_glib() { - // TODO: Show an in-app notification if the file can not be accessed if let Some(filename) = dialog.get_filename() { debug!("File selected: {:?}", filename); diff --git a/podcasts-gtk/src/widgets/home_view.rs b/podcasts-gtk/src/widgets/home_view.rs index af85708..9d6c71e 100644 --- a/podcasts-gtk/src/widgets/home_view.rs +++ b/podcasts-gtk/src/widgets/home_view.rs @@ -159,7 +159,6 @@ fn split(now: &DateTime, epoch: i64) -> ListSplit { struct HomeEpisode { container: gtk::Box, image: gtk::Image, - // FIXME: Change it to `EpisodeWidget` instead of a `Box`? episode: gtk::Box, }