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

AudioStream's internal get_stream_name seems to be entirely unused, rendering _get_stream_name pointless. #86935

Open
Mickeon opened this issue Jan 7, 2024 · 0 comments

Comments

@Mickeon
Copy link
Contributor

Mickeon commented Jan 7, 2024

Tested versions

Starting from 4.0

System information

Windows 10

Issue description

Opening this issue before doing something hasty.

In the source code, it seems like AudioStream's get_stream_name is overridden properly for almost every inherited AudioStream type. However, outside of the tests, this method is not ever actually called.

This also makes the exposed, overridable method _get_stream_name entirely pointless, as the returned name is not ever used for anything.

The simplest solution to this issue is to expose get_stream_name.1 The "bad ending" involves deprecating the method outright.

Steps to reproduce

This requires a look at the source code. Find every reference of get_stream_name. Every mention is an appropriate override of the original, but it is never called for any actual purpose.

Minimal reproduction project (MRP)

No need.

Footnotes

  1. Can we, like, stop exposing methods without making sure they're actually useful for something? Please? I'm so peeved about this. "Undocumented" may as well be "not ever utilized" and by extension, engine bloat!

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

No branches or pull requests

1 participant