Codechange: Remove two vector typedefs which are only used once. (#14612)

This commit is contained in:
Peter Nelson
2025-09-12 19:41:18 +01:00
committed by dP
parent 404e9bb506
commit a2b2fe3058
4 changed files with 8 additions and 14 deletions

View File

@@ -109,9 +109,6 @@ enum RailFenceOffset : uint8_t {
RFO_SLOPE_NW_SW, //!< Slope NW, Track Y, Fence SW
};
/** List of rail type labels. */
typedef std::vector<RailTypeLabel> RailTypeLabelList;
/**
* This struct contains all the info that is needed to draw and construct tracks.
*/
@@ -229,7 +226,7 @@ public:
/**
* Rail type labels this type provides in addition to the main label.
*/
RailTypeLabelList alternate_labels;
std::vector<RailTypeLabel> alternate_labels;
/**
* Colour on mini-map

View File

@@ -63,9 +63,6 @@ enum RoadTypeSpriteGroup : uint8_t {
ROTSG_END,
};
/** List of road type labels. */
typedef std::vector<RoadTypeLabel> RoadTypeLabelList;
class RoadTypeInfo {
public:
/**
@@ -140,7 +137,7 @@ public:
/**
* Road type labels this type provides in addition to the main label.
*/
RoadTypeLabelList alternate_labels;
std::vector<RoadTypeLabel> alternate_labels;
/**
* Colour on mini-map

View File

@@ -95,7 +95,7 @@ static const RailTypeInfo _original_railtypes[] = {
RAILTYPE_LABEL_RAIL,
/* alternate labels */
RailTypeLabelList(),
{},
/* map colour */
PC_GREY,
@@ -197,7 +197,7 @@ static const RailTypeInfo _original_railtypes[] = {
RAILTYPE_LABEL_ELECTRIC,
/* alternate labels */
RailTypeLabelList(),
{},
/* map colour */
PC_GREY,
@@ -295,7 +295,7 @@ static const RailTypeInfo _original_railtypes[] = {
RAILTYPE_LABEL_MONO,
/* alternate labels */
RailTypeLabelList(),
{},
/* map colour */
PC_GREY,
@@ -393,7 +393,7 @@ static const RailTypeInfo _original_railtypes[] = {
RAILTYPE_LABEL_MAGLEV,
/* alternate labels */
RailTypeLabelList(),
{},
/* map colour */
PC_GREY,

View File

@@ -78,7 +78,7 @@ static const RoadTypeInfo _original_roadtypes[] = {
ROADTYPE_LABEL_ROAD,
/* alternate labels */
RoadTypeLabelList(),
{},
/* map colour */
PC_BLACK,
@@ -159,7 +159,7 @@ static const RoadTypeInfo _original_roadtypes[] = {
ROADTYPE_LABEL_TRAM,
/* alternate labels */
RoadTypeLabelList(),
{},
/* map colour */
PC_BLACK,