forked from 0ad/0ad
Remove structure tree helper function that was never used since 932dbc7221
.
This was SVN commit r18949.
This commit is contained in:
parent
95fa246b82
commit
d623a73f9f
@ -78,20 +78,6 @@ function fetchValue(templateName, keypath)
|
||||
return template[keys[k]];
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch tokens from an entity's template
|
||||
* @return An array containing all tokens if found, else an empty array
|
||||
* @see fetchValue
|
||||
*/
|
||||
function fetchTokens(templateName, keypath)
|
||||
{
|
||||
var val = fetchValue(templateName, keypath);
|
||||
if (!("_string" in val))
|
||||
return [];
|
||||
|
||||
return val._string.split(" ");
|
||||
}
|
||||
|
||||
function depath(path)
|
||||
{
|
||||
return path.slice(path.lastIndexOf("/") + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user