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

chore(Field.Option): remove unused code #4516

Merged
merged 2 commits into from
Jan 29, 2025
Merged

Conversation

langz
Copy link
Contributor

@langz langz commented Jan 29, 2025

I don't see that the Field.Option code is actually used at all 🤔

It's only the types that's used, as the actual JSX code that Field.Option had before this PR would never be ran, it would just be overridden in Field.Selection and Field.ArraySelection. And as it says in docs: Field.Option is a pseudo-component that is used by parent components to configure options. It has no use on its own.

Copy link

vercel bot commented Jan 29, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
eufemia ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2025 9:05am

@langz langz changed the title Chore/remove unused code chore(Field.Option): removes unused code Jan 29, 2025
@langz langz force-pushed the chore/remove-unused-code branch 2 times, most recently from 0809ce5 to d92f106 Compare January 29, 2025 08:05
Copy link

codesandbox-ci bot commented Jan 29, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@langz langz force-pushed the chore/remove-unused-code branch from 7c976e0 to 22b8df5 Compare January 29, 2025 08:13
@langz langz requested a review from tujoworker January 29, 2025 08:34
@langz langz changed the title chore(Field.Option): removes unused code chore(Field.Option): remove unused code Jan 29, 2025
Copy link
Member

@tujoworker tujoworker left a comment

Choose a reason for hiding this comment

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

Yes, that's true. I think the intention from Henrik was that it may be used one time. But I'm fine of removing it.
We just "pick" the props from inside Selection.

@langz langz merged commit de8a95b into main Jan 29, 2025
9 of 10 checks passed
@langz langz deleted the chore/remove-unused-code branch January 29, 2025 08:57
@tujoworker
Copy link
Member

🎉 This PR is included in version 10.63.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants