Skip to content

Commit

Permalink
Merge pull request #1016 from IntersectMBO/smelc/delete-dead-code
Browse files Browse the repository at this point in the history
DRep.hs: delete unused code
  • Loading branch information
carbolymer authored Jan 13, 2025
2 parents 8e82b71 + ee10d1c commit 237d30f
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 @@ -216,19 +216,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 237d30f

Please sign in to comment.