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

[Clean-up] Remove redundant platform safe-guards in core #664

Open
psaavedra opened this issue Nov 16, 2023 · 0 comments
Open

[Clean-up] Remove redundant platform safe-guards in core #664

psaavedra opened this issue Nov 16, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@psaavedra
Copy link
Member

psaavedra commented Nov 16, 2023

Now, in https://github.com/Igalia/cog/blob/master/core/cog-view.c#L149 and in (future master)

if (platform) {
, we can safely assume that cog_platform_get() will always return a valid instance because we have CogFallbackPlatform always built into libcogcore.

Also address this trivial verification:
https://github.com/Igalia/cog/pull/662/files/c0774f656c7d73db285297f9d1901c8b8ced2d0a#r1395788191

Related to this comment: https://github.com/Igalia/cog/pull/662/files/c0774f656c7d73db285297f9d1901c8b8ced2d0a#r1395785705

@aperezdc aperezdc self-assigned this Nov 17, 2023
@aperezdc aperezdc added the enhancement New feature or request label Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants