summaryrefslogtreecommitdiff
path: root/src/newgrf_debug_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2012-11-10 20:45:59 +0000
committeralberth <alberth@openttd.org>2012-11-10 20:45:59 +0000
commit4c9bea2a714da675217522c39113ba2c2c5bbee4 (patch)
treef04d63a5864e01eef76f74f0a09692a0baa880e1 /src/newgrf_debug_gui.cpp
parent69e07c3e00180053cc087ceb1dfeb89845b79857 (diff)
downloadopenttd-4c9bea2a714da675217522c39113ba2c2c5bbee4.tar.xz
(svn r24692) -Cleanup: Cleanup final parts of the old resolver code.
Diffstat (limited to 'src/newgrf_debug_gui.cpp')
-rw-r--r--src/newgrf_debug_gui.cpp16
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.