summaryrefslogtreecommitdiff
path: root/src/newgrf_industries.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2018-03-11 13:19:41 +0000
committerfrosch <frosch@openttd.org>2018-03-11 13:19:41 +0000
commitd9d669dcf855e444a77141b4b96e5df1f13c7203 (patch)
treea90dc37970fd26211382b50c25b5680be5963955 /src/newgrf_industries.cpp
parent7c406f0d9dc365960f07e20e690cc0bdf8682fd6 (diff)
downloadopenttd-d9d669dcf855e444a77141b4b96e5df1f13c7203.tar.xz
(svn r27984) -Codechange: Make ScopeResolver constructors/destructors inlineable. Speedup sprite resolving by about 8 percent.
Diffstat (limited to 'src/newgrf_industries.cpp')
-rw-r--r--src/newgrf_industries.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp
index 9f227a9f5..7815ba36a 100644
--- a/src/newgrf_industries.cpp
+++ b/src/newgrf_industries.cpp
@@ -458,23 +458,6 @@ TownScopeResolver *IndustriesResolverObject::GetTown()
}
/**
- * Scope resolver for industries.
- * @param ro Surrounding resolver.
- * @param tile %Tile owned by the industry.
- * @param industry %Industry being resolved.
- * @param type Type of the industry.
- * @param random_bits Random bits of the new industry.
- */
-IndustriesScopeResolver::IndustriesScopeResolver(ResolverObject &ro, TileIndex tile, Industry *industry, IndustryType type, uint32 random_bits)
- : ScopeResolver(ro)
-{
- this->tile = tile;
- this->industry = industry;
- this->type = type;
- this->random_bits = random_bits;
-}
-
-/**
* Perform an industry callback.
* @param callback The callback to perform.
* @param param1 The first parameter.