summaryrefslogtreecommitdiff
path: root/src/industry.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/industry.h')
-rw-r--r--src/industry.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/industry.h b/src/industry.h
index 69af3f436..a36fb5ca0 100644
--- a/src/industry.h
+++ b/src/industry.h
@@ -265,17 +265,6 @@ void BuildIndustriesLegend();
/* industry_cmd.cpp */
void SetIndustryDailyChanges();
-/**
- * Check if an Industry exists whithin the pool of industries
- * @param index of the desired industry
- * @return true if it is inside the pool
- */
-static inline bool IsValidIndustryID(IndustryID index)
-{
- return index < Industry::GetPoolSize() && Industry::Get(index)->IsValid();
-}
-
-
static inline IndustryID GetMaxIndustryIndex()
{
/* TODO - This isn't the real content of the function, but
@@ -346,7 +335,7 @@ static inline Industry *GetRandomIndustry()
index++;
/* Make sure we have a valid industry */
- while (!IsValidIndustryID(index)) {
+ while (!Industry::IsValidID(index)) {
index++;
assert(index <= GetMaxIndustryIndex());
}