Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@andreasabel
Copy link
Contributor

The constructor PreferHash of GenerateHashStrategy is never used,
removing it clarifies the logic to the reader of the code.

data GenerateHashStrategy
= ForceHash -- ^ Option @--hash@ given.
| ForceNoHash -- ^ Option @--no-hash given.
| PreferNoHash -- ^ None of these option given, default behavior.
Copy link
Owner

Choose a reason for hiding this comment

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

I think you are right that as far as the hpack executable is concerned this is indeed dead code. However, it is exposed through the API, so as I understand it a user of the API could still use it to force pre-0.34 behavior.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, so maybe phase this out slowly, or deprecate it in the API first.

The constructor PreferHash of GenerateHashStrategy is never used,
removing it clarifies the logic to the reader of the code.
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.

2 participants