Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused code in cardano-testnet #5491

Merged
merged 8 commits into from
Oct 4, 2023

Conversation

Jimbo4350
Copy link
Contributor

@Jimbo4350 Jimbo4350 commented Oct 2, 2023

Description

Dead code removal
Also resolves: #4791

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. These may include:
    • golden tests
    • property tests
    • roundtrip tests
    • integration tests
      See Runnings tests for more details
  • Any changes are noted in the CHANGELOG.md for affected package
  • The version bounds in .cabal files are updated
  • CI passes. See note on CI. The following CI checks are required:
    • Code is linted with hlint. See .github/workflows/check-hlint.yml to get the hlint version
    • Code is formatted with stylish-haskell. See .github/workflows/stylish-haskell.yml to get the stylish-haskell version
    • Code builds on Linux, MacOS and Windows for ghc-8.10.7 and ghc-9.2.7
  • Self-reviewed the diff

Note on CI

If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges. Please contact IOG node developers to do this
for you.

@Jimbo4350 Jimbo4350 requested a review from a team as a code owner October 2, 2023 20:32
}

sbe <- case cardanoEraStyle era of
ShelleyBasedEra era' -> return era'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't that an incomplete pattern match?

@Jimbo4350 Jimbo4350 force-pushed the jordan/remove-unused-code-cardano-testnet branch from 13ef1e8 to 363bb10 Compare October 3, 2023 14:51
@Jimbo4350 Jimbo4350 requested review from a team as code owners October 3, 2023 14:51
@Jimbo4350 Jimbo4350 force-pushed the jordan/remove-unused-code-cardano-testnet branch from 363bb10 to 5b45309 Compare October 3, 2023 15:07
@Jimbo4350 Jimbo4350 mentioned this pull request Oct 3, 2023
21 tasks
@Jimbo4350 Jimbo4350 force-pushed the jordan/remove-unused-code-cardano-testnet branch from 5b45309 to 8ed24b8 Compare October 3, 2023 20:03
Use new functions from Testnet.Components.* to simplify the test
Propagate changes due to cardanoTestnet now relying on the
"create-staked" cli command
Propagate removal of BftTestnetNodeOptions
Misc changes
@Jimbo4350 Jimbo4350 force-pushed the jordan/remove-unused-code-cardano-testnet branch from 8ed24b8 to 57bd7a2 Compare October 4, 2023 12:31
  Testnet.Commands.Byron
  TestnetOptions
  StartConwayTestnet
  StartByrontestnet
  CardanoOnlyTestnetOptions
  Parsers.Byron
  Parsers.Conway
  Testnet.Start.Conway
  ConwayTestnetOptions
@Jimbo4350 Jimbo4350 force-pushed the jordan/remove-unused-code-cardano-testnet branch from 57bd7a2 to 20f27f6 Compare October 4, 2023 13:19
@Jimbo4350 Jimbo4350 merged commit 8b3784d into master Oct 4, 2023
22 of 24 checks passed
@Jimbo4350 Jimbo4350 deleted the jordan/remove-unused-code-cardano-testnet branch October 4, 2023 14:49
Icelandjack pushed a commit that referenced this pull request Oct 18, 2023
* Update hprop_kes_period_info to run in the Babbage era
Use new functions from Testnet.Components.* to simplify the test
Propagate changes due to cardanoTestnet now relying on the
"create-staked" cli command

* Add decodeEraUTxO
Propagate removal of BftTestnetNodeOptions
Misc changes

* Remove Testnet.Commands.Shelley module

* Remove Parsers.Shelley and Testnet.Start.Shelley modules

* Remove Parsers.Babbage and Testnet.Start.Babbage modules

* Remove:
  Testnet.Commands.Byron
  TestnetOptions
  StartConwayTestnet
  StartByrontestnet
  CardanoOnlyTestnetOptions

* Remove:
  Parsers.Byron
  Parsers.Conway
  Testnet.Start.Conway
  ConwayTestnetOptions

* Update cardano-testnet golden tests
NadiaYvette pushed a commit that referenced this pull request Nov 6, 2023
* Update hprop_kes_period_info to run in the Babbage era
Use new functions from Testnet.Components.* to simplify the test
Propagate changes due to cardanoTestnet now relying on the
"create-staked" cli command

* Add decodeEraUTxO
Propagate removal of BftTestnetNodeOptions
Misc changes

* Remove Testnet.Commands.Shelley module

* Remove Parsers.Shelley and Testnet.Start.Shelley modules

* Remove Parsers.Babbage and Testnet.Start.Babbage modules

* Remove:
  Testnet.Commands.Byron
  TestnetOptions
  StartConwayTestnet
  StartByrontestnet
  CardanoOnlyTestnetOptions

* Remove:
  Parsers.Byron
  Parsers.Conway
  Testnet.Start.Conway
  ConwayTestnetOptions

* Update cardano-testnet golden tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove all other *TestnetOptions data declarations in cardano-testnet
2 participants