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 unused hints #60458

Merged
merged 1 commit into from
Jul 13, 2022
Merged

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Apr 23, 2022

No description provided.

@akien-mga
Copy link
Member

I think that the enum values should be made continuous again, we can break compat in 4.0.

PROPERTY_USAGE_NO_EDITOR = PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK,
PROPERTY_USAGE_DEFAULT = PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_EDITOR,
PROPERTY_USAGE_DEFAULT_INTL = PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_EDITOR | PROPERTY_USAGE_INTERNATIONALIZED,
PROPERTY_USAGE_NO_EDITOR = PROPERTY_USAGE_STORAGE,
Copy link
Member Author

Choose a reason for hiding this comment

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

I just realized PROPERTY_USAGE_NO_EDITOR is now basically an alias to PROPERTY_USAGE_STORAGE. Should it be removed maybe?

Copy link
Contributor

@YuriSizov YuriSizov Jun 29, 2022

Choose a reason for hiding this comment

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

I think it works well to indicate that the property is hidden in the inspector and I fear doing the same with just storage is not going to be as clear.

@KoBeWi KoBeWi force-pushed the Deprecated-hint,-unused- branch from 865a5b7 to 93ee62c Compare April 26, 2022 16:21
PROPERTY_USAGE_GROUP = 1 << 5, //used for grouping props in the editor
PROPERTY_USAGE_CATEGORY = 1 << 6,
PROPERTY_USAGE_SUBGROUP = 1 << 7,
PROPERTY_USAGE_NO_INSTANCE_STATE = 8,
Copy link
Member Author

Choose a reason for hiding this comment

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

This is implemented, but not used anywhere.

@KoBeWi KoBeWi force-pushed the Deprecated-hint,-unused- branch from 93ee62c to 1ba0b37 Compare June 28, 2022 23:53
@KoBeWi KoBeWi requested a review from a team as a code owner June 28, 2022 23:53
@akien-mga akien-mga added this to the 4.0 milestone Jun 29, 2022
@akien-mga akien-mga requested review from a team and removed request for a team June 29, 2022 11:34
@KoBeWi KoBeWi force-pushed the Deprecated-hint,-unused- branch 2 times, most recently from 3f72a54 to 0efd9f3 Compare June 29, 2022 12:02
@YuriSizov
Copy link
Contributor

Maybe we can reorder some of them to be presented in a more organized manner? Since this is a clean-up PR anyway...

@KoBeWi
Copy link
Member Author

KoBeWi commented Jun 29, 2022

If you have ideas for better order I'm open to suggestions.

@akien-mga
Copy link
Member

Yeah I've been meaning to get this thoroughly cleaned up/reordered/renamed but I can't muster the brain capacity to do a proposal for this.

Related: #30203.

@KoBeWi
Copy link
Member Author

KoBeWi commented Jul 11, 2022

Maybe we could merge this now and debate about ordering later? Rebasing is troublesome >_>

@YuriSizov
Copy link
Contributor

We have until the next week and Remi returns anyway, I'll try to think of what we can improve with the order.

@KoBeWi KoBeWi force-pushed the Deprecated-hint,-unused- branch from 0efd9f3 to 2f777b9 Compare July 11, 2022 22:44
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

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

Let's merge and do further cleanup later.

@akien-mga akien-mga merged commit 184f62c into godotengine:master Jul 13, 2022
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the Deprecated-hint,-unused- branch July 13, 2022 22:56
PROPERTY_USAGE_DEFAULT = PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_EDITOR | PROPERTY_USAGE_NETWORK,
PROPERTY_USAGE_DEFAULT_INTL = PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_EDITOR | PROPERTY_USAGE_NETWORK | PROPERTY_USAGE_INTERNATIONALIZED,
PROPERTY_USAGE_NO_EDITOR = PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK,
PROPERTY_USAGE_STORAGE = 1 << 1,
Copy link
Member

Choose a reason for hiding this comment

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

1 << 1 is 2, not 1. Should have started with 1 << 0, but now it's too late to fix it.

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

Successfully merging this pull request may close these issues.

4 participants