diff --git a/src/payment_plan.rs b/src/payment_plan.rs index 58147267cd..fe809ca6f4 100644 --- a/src/payment_plan.rs +++ b/src/payment_plan.rs @@ -12,23 +12,6 @@ pub enum Witness { Signature(PublicKey), } -#[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Clone)] -pub enum Condition { - Timestamp(DateTime), - Signature(PublicKey), -} - -impl Condition { - /// Return true if the given Witness satisfies this Condition. - pub fn is_satisfied(&self, witness: &Witness) -> bool { - match (self, witness) { - (&Condition::Signature(ref pubkey), &Witness::Signature(ref from)) => pubkey == from, - (&Condition::Timestamp(ref dt), &Witness::Timestamp(ref last_time)) => dt <= last_time, - _ => false, - } - } -} - #[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Clone)] pub struct Payment { pub tokens: i64,