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

textured-teapot: remove dead code #1055

Merged
merged 1 commit into from
May 15, 2024
Merged

Conversation

DanAlbert
Copy link
Member

Whoever wrote this wrote some general purpose texture and renderer classes... which they then copy pasted into each sample. This sample only ever uses a cubemap texture, so delete the other paths and remove the error handling code for a thing that will never happen.

The original intent was good, but it's pointless when the three teapots samples (classic, textured, and image-decoder) are three samples that don't share this "common" code. I suspect I'll merge the three at some point, but I don't really like how this particular interface was shaped anyway, so I'll probably rewrite that when I do.

Whoever wrote this wrote some general purpose texture and renderer
classes... which they then copy pasted into each sample. This sample
only ever uses a cubemap texture, so delete the other paths and remove
the error handling code for a thing that will never happen.

The original intent was good, but it's pointless when the three teapots
samples (classic, textured, and image-decoder) are three samples that
don't share this "common" code. I suspect I'll merge the three at some
point, but I don't really like how this particular interface was shaped
anyway, so I'll probably rewrite that when I do.
@DanAlbert DanAlbert requested a review from enh-google May 14, 2024 19:40
@DanAlbert DanAlbert enabled auto-merge (rebase) May 14, 2024 20:59
@DanAlbert DanAlbert merged commit fc12a5c into android:main May 15, 2024
2 checks passed
@DanAlbert DanAlbert deleted the remove-dead-code branch May 15, 2024 18:13
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.

2 participants