Skip to content

Commit

Permalink
DRep.hs: delete unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Jan 10, 2025
1 parent 5c76870 commit ee10d1c
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/DRep.hs
Original file line number Diff line number Diff line change
Expand Up @@ -214,19 +214,3 @@ pDRepMetadataSource =
[ DrepMetadataFileIn <$> pFileInDirection "drep-metadata-file" "JSON Metadata file to hash."
, DrepMetadataURL <$> pUrl "drep-metadata-url" "URL pointing to the JSON Metadata file to hash."
]

--------------------------------------------------------------------------------

data AnyEraDecider era where
AnyEraDeciderShelleyToBabbage :: ShelleyToBabbageEra era -> AnyEraDecider era
AnyEraDeciderConwayOnwards :: ConwayEraOnwards era -> AnyEraDecider era

instance Eon AnyEraDecider where
inEonForEra no yes = \case
ByronEra -> no
ShelleyEra -> yes $ AnyEraDeciderShelleyToBabbage ShelleyToBabbageEraShelley
AllegraEra -> yes $ AnyEraDeciderShelleyToBabbage ShelleyToBabbageEraAllegra
MaryEra -> yes $ AnyEraDeciderShelleyToBabbage ShelleyToBabbageEraMary
AlonzoEra -> yes $ AnyEraDeciderShelleyToBabbage ShelleyToBabbageEraAlonzo
BabbageEra -> yes $ AnyEraDeciderShelleyToBabbage ShelleyToBabbageEraBabbage
ConwayEra -> yes $ AnyEraDeciderConwayOnwards ConwayEraOnwardsConway

0 comments on commit ee10d1c

Please sign in to comment.