summaryrefslogtreecommitdiff
path: root/src/newgrf_object.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_object.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_object.cpp')
-rw-r--r--src/newgrf_object.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/newgrf_object.cpp b/src/newgrf_object.cpp
index 058d5e0c0..78bbc5244 100644
--- a/src/newgrf_object.cpp
+++ b/src/newgrf_object.cpp
@@ -128,21 +128,6 @@ bool NewGRFClass<Tspec, Tid, Tmax>::IsUIAvailable(uint index) const
INSTANTIATE_NEWGRF_CLASS_METHODS(ObjectClass, ObjectSpec, ObjectClassID, OBJECT_CLASS_MAX)
-/**
- * Constructor of an object scope resolver.
- * @param ro Surrounding resolver.
- * @param obj Object being resolved.
- * @param tile %Tile of the object.
- * @param view View of the object.
- */
-ObjectScopeResolver::ObjectScopeResolver(ResolverObject &ro, Object *obj, TileIndex tile, uint8 view)
- : ScopeResolver(ro)
-{
- this->obj = obj;
- this->tile = tile;
- this->view = view;
-}
-
/* virtual */ uint32 ObjectScopeResolver::GetRandomBits() const
{
return IsValidTile(this->tile) && IsTileType(this->tile, MP_OBJECT) ? GetObjectRandomBits(this->tile) : 0;