Skip to content

fix: make DealStatesEqual work properly#12783

Merged
rvagg merged 1 commit intomasterfrom
rvagg/equalequalequal
Dec 16, 2024
Merged

fix: make DealStatesEqual work properly#12783
rvagg merged 1 commit intomasterfrom
rvagg/equalequalequal

Conversation

@rvagg
Copy link
Copy Markdown
Member

@rvagg rvagg commented Dec 13, 2024

I'm not sure this is even needed. I also don't know if SectorNumber should be considered here, it wasn't on the original form and I only added it because that would seem to be appropriate for completeness.

My short git detective walk suggests the emptyDealState#Equals method contents was deduped with DealStatesEqual as part of the DDO work in #11226, but the wrong way around, ooops. So I'm flipping it back, but also adding SectorNumber because that would seem more correct 🤷‍♂️ ; depends on how this is used.

There's one use in StatePredicates#DealStateChangedForIDs but I can't see that being used anywhere.

There's one use in marketStatesDiffer#Modify as part of the DiffAdtArray. Downstream from this it's used by StatePredicates#OnDealStateAmtChanged, but I can't see that being used anywhere either.

@rvagg rvagg requested a review from magik6k December 13, 2024 10:06
@rvagg rvagg added the skip/changelog This change does not require CHANGELOG.md update label Dec 13, 2024
@rvagg rvagg merged commit 263636b into master Dec 16, 2024
@rvagg rvagg deleted the rvagg/equalequalequal branch December 16, 2024 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip/changelog This change does not require CHANGELOG.md update

Projects

Status: ☑️ Done (Archive)

Development

Successfully merging this pull request may close these issues.

2 participants