Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

[core, node, darwin, qt] Remove support for paint classes - #8953

Merged
jfirebaugh merged 6 commits into
masterfrom
rm-classes
May 15, 2017
Merged

jfirebaugh merged 6 commits into
masterfrom
rm-classes

Conversation

@jfirebaugh

@jfirebaugh jfirebaugh commented May 10, 2017 •

Copy link
Copy Markdown
Contributor

We've long talked about doing this, and with the implementation of async rendering, which will unlock smart set style, I think it's time.

Fixes #2875.

@jfirebaugh
jfirebaugh force-pushed the rm-classes branch 4 times, most recently from 97b67ff to 420e83a Compare May 10, 2017 23:53
@jfirebaugh jfirebaugh changed the title [core, node, darwin] Remove support for paint classes [core, node, darwin, qt] Remove support for paint classes May 10, 2017
@jfirebaugh
jfirebaugh force-pushed the rm-classes branch 2 times, most recently from 0d1325d to b1075f5 Compare May 11, 2017 01:22
@jfirebaugh
jfirebaugh force-pushed the immutable branch 4 times, most recently from e859904 to 2228ad9 Compare May 12, 2017 17:55
@jfirebaugh
jfirebaugh changed the base branch from immutable to master May 12, 2017 18:28

@1ec5 1ec5 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Keeping the methods but making them nonfunctional would technically allow us to avoid a major semver bump on iOS, but it’s against the spirit of those rules to change the behavior in a significant way. Fortunately, hopefully style class usage on iOS is insignificant enough to make this change regardless.

We should state in the documentation comments for the affected methods and in the iOS/macOS changelogs that these methods have no effect. (There are also still deprecated style class methods on the iOS implementation of MGLMapView.) Finally, there’s a line in the “Information for Style Authors” guide that refers to style classes; we should probably remove that.

Comment thread platform/darwin/src/MGLStyle.mm Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The negative version of BOOL is NO, not false.

Comment thread platform/darwin/src/MGLStyle.mm Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Use @[] for an empty array.

@1ec5 1ec5 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

☀️

Comment thread platform/darwin/src/MGLStyle.h Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Normally deprecation messages say what to use instead, or they say, “There is no replacement.” In this case, the replacement would be setting properties on style layers individually, right?

Comment thread platform/qt/src/qmapboxgl.cpp Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We don't need to maintain binary compatibility on the QMapboxGL interface - we use it internally and expose a separate API on the QtLocation plugin - thus it is safe to assume we can remove all class-handling function implementations from QMapboxGL.

Comment thread platform/qt/src/qmapboxgl.cpp Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ditto.

Comment thread platform/qt/src/qmapboxgl.cpp Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ditto.

Comment thread platform/qt/src/qmapboxgl.cpp Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ditto.

Comment thread platform/qt/src/qmapboxgl.cpp Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ditto.

Comment thread platform/qt/src/qmapboxgl.cpp Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For the same reasons previously mentioned, we can remove the final argument entirely.

@brunoabinader brunoabinader left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Awesome job @jfirebaugh 🚀 I appreciate your attention over binary compatibility on the Qt API though we don't need it - we can nuke that code away too 🤘

@jfirebaugh

Copy link
Copy Markdown
Contributor Author

Great, thanks @brunoabinader, I will remove it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants