From ab0b91700dc068088722c1a65eaa8bc2018b7fec Mon Sep 17 00:00:00 2001 From: kylezs Date: Wed, 19 Feb 2025 11:14:44 +0100 Subject: [PATCH] chore: remove unused IntoResult --- .../state_machine/state_machine_es.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/state-chain/pallets/cf-elections/src/electoral_systems/state_machine/state_machine_es.rs b/state-chain/pallets/cf-elections/src/electoral_systems/state_machine/state_machine_es.rs index f041122f65..b22ec95f33 100644 --- a/state-chain/pallets/cf-elections/src/electoral_systems/state_machine/state_machine_es.rs +++ b/state-chain/pallets/cf-elections/src/electoral_systems/state_machine/state_machine_es.rs @@ -15,21 +15,6 @@ use super::{ state_machine::StateMachine, }; -pub trait IntoResult { - type Ok; - type Err; - - fn into_result(self) -> Result; -} - -impl IntoResult for Result { - type Ok = A; - type Err = B; - fn into_result(self) -> Result { - self - } -} - /// This is an Either type, unfortunately it's more ergonomic /// to recreate this instead of using `itertools::Either`, because /// we need a special implementation of Indexed: we want the vote to