diff options
Diffstat (limited to 'src/newgrf_debug_gui.cpp')
-rw-r--r-- | src/newgrf_debug_gui.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/newgrf_debug_gui.cpp b/src/newgrf_debug_gui.cpp index 294ffafd4..c807b1bda 100644 --- a/src/newgrf_debug_gui.cpp +++ b/src/newgrf_debug_gui.cpp @@ -160,13 +160,7 @@ public: * @param avail Return whether the variable is available. * @return The resolved variable's value. */ - virtual uint Resolve(uint index, uint var, uint param, bool *avail) const - { - ResolverObject ro; - memset(&ro, 0, sizeof(ro)); - this->Resolve(&ro, index); - return ro.GetScope(ro.scope)->GetVariable(var, param, avail); - } + virtual uint Resolve(uint index, uint var, uint param, bool *avail) const = 0; /** * Used to decide if the PSA needs a parameter or not. @@ -201,14 +195,6 @@ public: protected: /** - * Actually execute the real resolving for a given (instance) index. - * @param ro The resolver object to fill with everything - * needed to be able to resolve a variable. - * @param index The (instance) index of the to-be-resolved variable. - */ - virtual void Resolve(ResolverObject *ro, uint index) const {} - - /** * Helper to make setting the strings easier. * @param string the string to actually draw. * @param index the (instance) index for the string. |