diff options
author | Ricky Kresslein <rk@lakoliu.com> | 2022-06-16 12:26:03 +0300 |
---|---|---|
committer | Ricky Kresslein <rk@lakoliu.com> | 2022-06-16 12:26:03 +0300 |
commit | 5d10ae6499350617e853c77382ae1775535c3646 (patch) | |
tree | b8b5a253c56e11169fae7cd1ef9a967b6b78a642 | |
parent | fdbaec6f822b4e7cdbdf63aabceb4d92b6a12326 (diff) | |
download | Furtherance-5d10ae6499350617e853c77382ae1775535c3646.tar.zst |
Removed libc_strftime
-rwxr-xr-x | Cargo.lock | 10 | ||||
-rwxr-xr-x | src/ui/tasks_page.rs | 5 |
2 files changed, 0 insertions, 15 deletions
diff --git a/Cargo.lock b/Cargo.lock index f5675f5..66fa5c3 100755 --- a/Cargo.lock +++ b/Cargo.lock @@ -259,7 +259,6 @@ dependencies = [ "gtk4-macros", "itertools", "libadwaita", - "libc-strftime", "log", "num-derive", "num-traits", @@ -700,15 +699,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "06e509672465a0504304aa87f9f176f2b2b716ed8fb105ebe5c02dc6dce96a94" [[package]] -name = "libc-strftime" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3badb12f3d8623017f2cff9de476ff32f426ef45419253366fa088b8df6364cf" -dependencies = [ - "libc", -] - -[[package]] name = "libdbus-sys" version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" diff --git a/src/ui/tasks_page.rs b/src/ui/tasks_page.rs index bdee606..911b005 100755 --- a/src/ui/tasks_page.rs +++ b/src/ui/tasks_page.rs @@ -20,7 +20,6 @@ use chrono::{DateTime, Duration, Local}; use gettextrs::*; use gtk::subclass::prelude::*; use gtk::{glib, prelude::*}; -use libc_strftime::{epoch, strftime_local}; use crate::database::{self, SortOrder, TaskSort}; use crate::settings_manager; @@ -88,10 +87,6 @@ impl FurTasksPage { pub fn build_task_list(&self) { let imp = imp::FurTasksPage::from_instance(&self); - let now = epoch(); // most likely a u64 - let local = strftime_local("%h %e", now); - println!("On est: {}", local); - let tasks_list = database::retrieve(TaskSort::StartTime, SortOrder::Descending).unwrap(); let mut uniq_date_list: Vec<String> = Vec::new(); |