(svn r24692) -Cleanup: Cleanup final parts of the old resolver code.

This commit is contained in:
alberth
2012-11-10 20:45:59 +00:00
parent 69e07c3e00
commit 4c9bea2a71
23 changed files with 96 additions and 229 deletions

View File

@@ -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.
@@ -200,14 +194,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.