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

Removed dead constructor PreferHash #446

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

andreasabel
Copy link
Contributor

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

andreasabel and others added 2 commits July 14, 2021 16:53
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.

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.

3 participants