Skip to content

Commit 1bab18e

Browse files
authored
refactor: Remove superfluous comments from last entries in enums and arrays (#1586)
1 parent 9bbcf00 commit 1bab18e

File tree

171 files changed

+292
-288
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+292
-288
lines changed

Core/GameEngine/Include/Common/Xfer.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ enum XferMode CPP_11(: Int)
6868
XFER_LOAD,
6969
XFER_CRC,
7070

71-
NUM_XFER_TYPES // please keep this last
71+
NUM_XFER_TYPES
7272
};
7373

7474
//-------------------------------------------------------------------------------------------------
@@ -96,7 +96,7 @@ enum XferStatus CPP_11(: Int)
9696

9797
XFER_ERROR_UNKNOWN, ///< unknown error (isn't that useful!)
9898

99-
NUM_XFER_STATUS // please keep this last
99+
NUM_XFER_STATUS
100100
};
101101

102102
// ------------------------------------------------------------------------------------------------
@@ -106,7 +106,7 @@ enum XferOptions CPP_11(: UnsignedInt)
106106
XO_NONE = 0x00000000,
107107
XO_NO_POST_PROCESSING = 0x00000001,
108108

109-
XO_ALL = 0xFFFFFFFF // keep this last please
109+
XO_ALL = 0xFFFFFFFF
110110
};
111111

112112
///////////////////////////////////////////////////////////////////////////////////////////////////

Core/Tools/Autorun/autorun.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ enum
252252
IDS_MAIN_WINDOW,
253253
254254
255-
IDS_COUNT // keep this last
255+
IDS_COUNT
256256
};
257257
*/
258258

Core/Tools/PATCHGET/CHATAPI.CPP

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ enum EVENT_TYPES
4949
{
5050
NOUPDATE_EVENT=0, // don't need to update
5151
ABORT_EVENT,
52-
NUM_EVENTS // keep last
52+
53+
NUM_EVENTS
5354
};
5455

5556
#if RTS_GENERALS

Generals/Code/GameEngine/Include/Common/FunctionLexicon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class FunctionLexicon : public SubsystemInterface
6868
TABLE_WIN_LAYOUT_UPDATE,
6969
TABLE_WIN_LAYOUT_SHUTDOWN,
7070

71-
MAX_FUNCTION_TABLES // keep this last
71+
MAX_FUNCTION_TABLES
7272
};
7373

7474
public:

Generals/Code/GameEngine/Include/Common/GameType.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ enum TimeOfDay CPP_11(: Int)
7474
TIME_OF_DAY_EVENING,
7575
TIME_OF_DAY_NIGHT,
7676

77-
TIME_OF_DAY_COUNT // keep this last
77+
TIME_OF_DAY_COUNT
7878
};
7979

8080
extern const char *TimeOfDayNames[];
@@ -86,7 +86,7 @@ enum Weather CPP_11(: Int)
8686
WEATHER_NORMAL = 0,
8787
WEATHER_SNOWY = 1,
8888

89-
WEATHER_COUNT // keep this last
89+
WEATHER_COUNT
9090
};
9191

9292
extern const char *WeatherNames[];
@@ -176,7 +176,7 @@ enum WeaponSlotType CPP_11(: Int)
176176
SECONDARY_WEAPON,
177177
TERTIARY_WEAPON,
178178

179-
WEAPONSLOT_COUNT // keep last
179+
WEAPONSLOT_COUNT
180180
};
181181

182182
//-------------------------------------------------------------------------------------------------

Generals/Code/GameEngine/Include/Common/Geometry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ enum GeometryType CPP_11(: Int)
5252
GEOMETRY_CYLINDER, ///< partition/collision testing as cylinder. (majorRadius = radius, height = height)
5353
GEOMETRY_BOX, ///< partition/collision testing as rectangular box (majorRadius = half len in forward dir; minorRadius = half len in side dir; height = height)
5454

55-
GEOMETRY_NUM_TYPES, // keep this last
55+
GEOMETRY_NUM_TYPES,
5656
GEOMETRY_FIRST = GEOMETRY_SPHERE
5757
};
5858

Generals/Code/GameEngine/Include/Common/ModelState.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ enum ModelConditionFlagType CPP_11(: Int)
214214
// existing values!
215215
//
216216

217-
MODELCONDITION_COUNT // keep last!
217+
MODELCONDITION_COUNT
218218
};
219219

220220
//-------------------------------------------------------------------------------------------------

Generals/Code/GameEngine/Include/Common/Module.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ enum ModuleType CPP_11(: Int)
6969
MODULETYPE_CLIENT_UPDATE = 2,
7070
// put new drawable module types here
7171

72-
NUM_MODULE_TYPES, // keep this last!
72+
NUM_MODULE_TYPES,
7373

7474
FIRST_DRAWABLE_MODULE_TYPE = MODULETYPE_DRAW,
7575
LAST_DRAWABLE_MODULE_TYPE = MODULETYPE_CLIENT_UPDATE,

Generals/Code/GameEngine/Include/Common/Radar.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ enum RadarEventType CPP_11(: Int)
7676
RADAR_EVENT_FAKE, //Internally creates a radar event, but doesn't notify the player (unit lost
7777
//for example, so we can use the spacebar to jump to the event).
7878

79-
RADAR_EVENT_NUM_EVENTS // keep this last
79+
RADAR_EVENT_NUM_EVENTS
8080

8181
};
8282

@@ -142,7 +142,7 @@ enum RadarPriorityType CPP_11(: Int)
142142
RADAR_PRIORITY_UNIT, // unit level drawing priority
143143
RADAR_PRIORITY_LOCAL_UNIT_ONLY, // unit priority, but only on the radar if controlled by the local player
144144

145-
RADAR_PRIORITY_NUM_PRIORITIES // keep this last
145+
RADAR_PRIORITY_NUM_PRIORITIES
146146
};
147147
#ifdef DEFINE_RADAR_PRIORITY_NAMES
148148
static const char *RadarPriorityNames[] =
@@ -153,7 +153,7 @@ static const char *RadarPriorityNames[] =
153153
"UNIT", // unit level drawing priority
154154
"LOCAL_UNIT_ONLY", // unit priority, but only on the radar if controlled by the local player
155155

156-
NULL // keep this last
156+
NULL
157157
};
158158
#endif // DEFINE_RADAR_PRIOTITY_NAMES
159159

Generals/Code/GameEngine/Include/Common/TerrainTypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ typedef enum
7070
TERRAIN_WOOD,
7171
TERRAIN_BLEND_EDGES,
7272

73-
TERRAIN_NUM_CLASSES // keep this last
73+
TERRAIN_NUM_CLASSES
7474

7575
} TerrainClass;
7676
#ifdef DEFINE_TERRAIN_TYPE_NAMES

0 commit comments

Comments
 (0)