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 custom messages for deprecated/removed options #14396

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

na-na-hi
Copy link
Contributor

This warning system isn't used in any meaningful way and the messages are pointless when DOCS/interface-changes.rst has more detailed and helpful information, so just remove them and tell users to see DOCS/interface-changes.rst instead.

Copy link

github-actions bot commented Jun 20, 2024

Download the artifacts for this pull request:

Windows
macOS

Tell users to see interface-changes instead which has more detailed
informaion. No point to keep this pointless printing around.
options/m_option.h Outdated Show resolved Hide resolved
Comment on lines +751 to +752
MP_ERR(config, "This option might have been renamed, removed, or changed semantics.\n"
"See DOCS/interface-changes.rst for possible replacements.\n");
Copy link
Member

Choose a reason for hiding this comment

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

Is this really necessary? Seems noisy.

Copy link
Contributor Author

@na-na-hi na-na-hi Jun 25, 2024

Choose a reason for hiding this comment

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

I don't think it's noisy. I will consider changing it if several users complain about this.

Copy link
Member

@Dudemanguy Dudemanguy left a comment

Choose a reason for hiding this comment

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

Not sure this is really necessary, but it's fine I guess.

{"gamut-warning", OPT_REMOVED("Replaced by --gamut-mapping-mode=warn")},
{"gamut-clipping", OPT_REMOVED("Replaced by --gamut-mapping-mode=desaturate")},
{"tone-mapping-desaturate", OPT_REMOVED("Replaced by --tone-mapping-mode")},
{"tone-mapping-desaturate-exponent", OPT_REMOVED("Replaced by --tone-mapping-mode")},
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see how having to scour through interface-changes.rst is more helpful than this.

I'm also having a hard time seeing what the purpose of this even is. Just removing code for the sake of it?

Copy link
Contributor

@kasper93 kasper93 Jun 27, 2024

Choose a reason for hiding this comment

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

Please refer to #14382 for the discussion. I believe everything has been said and should give you idea, why this PR exists.

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.

None yet

4 participants