From 53d4604b63d8bc1464d1ea02ff03633c839e4c44 Mon Sep 17 00:00:00 2001 From: James Magahern Date: Sat, 21 Dec 2024 17:52:11 -0800 Subject: [PATCH] remove unused Date model --- kordophone-db/src/models/date.rs | 17 ----------------- kordophone-db/src/models/mod.rs | 1 - 2 files changed, 18 deletions(-) delete mode 100644 kordophone-db/src/models/date.rs diff --git a/kordophone-db/src/models/date.rs b/kordophone-db/src/models/date.rs deleted file mode 100644 index 084769e..0000000 --- a/kordophone-db/src/models/date.rs +++ /dev/null @@ -1,17 +0,0 @@ -use time::OffsetDateTime; - -pub struct Date { - pub dt: OffsetDateTime, -} - -impl Date { - pub fn new(dt: OffsetDateTime) -> Self { - Self { dt } - } -} - -impl Default for Date { - fn default() -> Self { - Self { dt: OffsetDateTime::now_utc() } - } -} \ No newline at end of file diff --git a/kordophone-db/src/models/mod.rs b/kordophone-db/src/models/mod.rs index 4d76d37..910f406 100644 --- a/kordophone-db/src/models/mod.rs +++ b/kordophone-db/src/models/mod.rs @@ -1,6 +1,5 @@ pub mod conversation; pub mod participant; -pub mod date; pub mod db; // Re-export the public types