1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-26 06:28:30 +02:00

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 2021-02-07 12:57:00 -08:00 committed by Ethan Lee
parent f9fa56a08a
commit 3cd18b337a

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)