From 9cbd5b88e6bf64f1f451a3e831bcb851181bfdc2 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 23 Feb 2017 08:07:47 +0100 Subject: [PATCH] rm_tree is not actually a thing --- src/kernel/resources.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/kernel/resources.c b/src/kernel/resources.c index e8be234a1..ae93d542a 100644 --- a/src/kernel/resources.c +++ b/src/kernel/resources.c @@ -185,19 +185,9 @@ struct rawmaterial *rm_get(region * r, const struct resource_type *rtype) struct rawmaterial_type *rmt_find(const char *str) { - const char * replace[] = { "rm_tree", "log", NULL }; resource_type *rtype = rt_find(str); if (!rtype && strncmp(str, "rm_", 3) == 0) { - int i; - for (i = 0; replace[i]; i+=2) { - if (strcmp(replace[i], str) == 0) { - rtype = rt_find(replace[i+1]); - break; - } - } - if (!rtype) { - rtype = rt_find(str+3); - } + rtype = rt_find(str+3); } assert(rtype); return rtype ? rtype->raw : NULL;