Remove CclGetResourceByName

The CclGetResourceByName calls were removed in bos SVN trunk r8780 on
2007-04-27.
This commit is contained in:
kon 2011-07-26 17:25:10 +00:00
parent e5ec703759
commit 25d5eb732c
2 changed files with 0 additions and 24 deletions

View file

@ -60,9 +60,6 @@
-- Functions
----------------------------------------------------------------------------*/
/// Get resource by name
extern unsigned CclGetResourceByName(lua_State *l);
/**
** Set capture buildings
**

View file

@ -89,27 +89,6 @@ static std::vector<LabelsLaterStruct> LabelsLater;
extern int GetSpriteIndex(const std::string &spriteName);
/**
** Get the resource ID from a SCM object.
**
** @param l Lua state.
**
** @return the resource id
*/
unsigned CclGetResourceByName(lua_State *l)
{
const char *value;
value = LuaToString(l, -1);
for (int i = 0; i < MaxCosts; ++i) {
if (value == DefaultResourceNames[i]) {
return i;
}
}
LuaError(l, "Unsupported resource tag: %s" _C_ value);
return 0xABCDEF;
}
/**
** Parse a "terrain" build restriction.
**