From b9aa434278c7e94484dbace3de9c43b180d255ba Mon Sep 17 00:00:00 2001 From: Savanni D'Gerinel Date: Wed, 6 Dec 2023 23:55:12 -0500 Subject: [PATCH] Remove types that are not implemented yet I've gone *years* without these types, mostly because I wasn't doing these workouts. I can go longer. --- fitnesstrax/core/src/types.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/fitnesstrax/core/src/types.rs b/fitnesstrax/core/src/types.rs index 091b5f2..4c332d1 100644 --- a/fitnesstrax/core/src/types.rs +++ b/fitnesstrax/core/src/types.rs @@ -56,11 +56,8 @@ pub struct Weight { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub enum TraxRecord { BikeRide(TimeDistance), - Pushups, Row(TimeDistance), Run(TimeDistance), - Situps, - Squats, Steps(Steps), Swim(TimeDistance), Walk(TimeDistance), @@ -71,11 +68,8 @@ impl Recordable for TraxRecord { fn timestamp(&self) -> Timestamp { match self { TraxRecord::BikeRide(rec) => Timestamp::DateTime(rec.datetime.clone()), - TraxRecord::Pushups => unimplemented!(), TraxRecord::Row(rec) => Timestamp::DateTime(rec.datetime.clone()), TraxRecord::Run(rec) => Timestamp::DateTime(rec.datetime.clone()), - TraxRecord::Situps => unimplemented!(), - TraxRecord::Squats => unimplemented!(), TraxRecord::Steps(rec) => Timestamp::Date(rec.date), TraxRecord::Swim(rec) => Timestamp::DateTime(rec.datetime.clone()), TraxRecord::Walk(rec) => Timestamp::DateTime(rec.datetime.clone()),