mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01: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:
parent
f9fa56a08a
commit
3cd18b337a
1 changed files with 0 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue