Remove comment from GCChar()

This comment indicates that the function is used by
UtilityClass::GCString(). Which is unnecessary, because the reader can
trivially search for usages of GCChar in the file itself (the 'static'
preceding the function should be a good enough hint) - and if there
aren't any, then the reader will know the function is unused, whereas if
they read the comment, they would have been under the assumption that it
wasn't used. (There might also a compiler warning about it being unused,
which would be more confusing if the comment was still there.)

Point is, comments can get outdated, so removing the comment here makes
the code more self-documenting.
This commit is contained in:
Misa authored and Ethan Lee committed 2021-02-07 18:30:13 -05:00
1 parent f9fa56a08a
commit 3cd18b337a
1 file changed
-1
-1
View File
@@ -4,7 +4,6 @@
#include <SDL.h>
#include <sstream>
/* Used by UtilityClass::GCString to generate a button list */
static const char *GCChar(SDL_GameControllerButton button)
{
if (button == SDL_CONTROLLER_BUTTON_A)