Skip to content

Remove unused mutation_rate field from MutationSettings#113

Merged
HyperCodec merged 2 commits intomainfrom
copilot/remove-old-mutation-rate-field
Feb 23, 2026
Merged

Remove unused mutation_rate field from MutationSettings#113
HyperCodec merged 2 commits intomainfrom
copilot/remove-old-mutation-rate-field

Conversation

Copy link
Contributor

Copilot AI commented Feb 23, 2026

MutationSettings had a mutation_rate: f32 field that was never read anywhere — pure dead code. It was declared in the struct and initialized in Default but had no effect on any mutation logic.

Changes

  • Removed pub mutation_rate: f32 from MutationSettings
  • Removed mutation_rate: 0.01 from MutationSettings::default()
Original prompt

This section details on the original issue you should resolve

<issue_title>Forgot to delete old mutation_rate field on MutationSettings</issue_title>
<issue_description>oopsies. it does absolutely nothing. surprised it wasn't caught for deadcode. oh well, i'll make a patch later addressing this.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: HyperCodec <72839119+HyperCodec@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove old mutation_rate field from MutationSettings Remove unused mutation_rate field from MutationSettings Feb 23, 2026
Copilot AI requested a review from HyperCodec February 23, 2026 22:21
@HyperCodec HyperCodec marked this pull request as ready for review February 23, 2026 22:22
Copilot AI review requested due to automatic review settings February 23, 2026 22:22
@HyperCodec HyperCodec merged commit 45aaeca into main Feb 23, 2026
5 checks passed
@HyperCodec HyperCodec deleted the copilot/remove-old-mutation-rate-field branch February 23, 2026 22:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes dead code from the MutationSettings struct by deleting the unused mutation_rate field that was never referenced anywhere in the codebase. The mutation rate is passed as a parameter to mutation methods rather than being stored in the settings struct.

Changes:

  • Removed unused mutation_rate: f32 field from MutationSettings struct
  • Removed initialization of mutation_rate: 0.01 from MutationSettings::default()

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Forgot to delete old mutation_rate field on MutationSettings

3 participants