fix build, eliminate unused variables/functions.

This commit is contained in:
Enno Rehling 2015-07-08 05:17:10 +02:00
parent 6abf8f7adb
commit efe2185b13
1 changed files with 1 additions and 11 deletions

View File

@ -22,15 +22,6 @@
#include <assert.h> #include <assert.h>
static struct castorder *test_create_castorder(castorder *order, unit *u, const char *name, int level, float force, int range) {
struct locale * lang;
spell *sp;
lang = get_or_create_locale("en");
sp = create_spell(name, 0);
return order = create_castorder(order, u, NULL, sp, u->region, level, force, range, create_order(K_CAST, lang, ""), NULL);
}
static void test_magicresistance_unit(CuTest *tc) { static void test_magicresistance_unit(CuTest *tc) {
struct region *r; struct region *r;
struct faction *f1, *f2; struct faction *f1, *f2;
@ -59,7 +50,7 @@ static void test_magicresistance_unit(CuTest *tc) {
static void test_magicresistance_building(CuTest *tc) { static void test_magicresistance_building(CuTest *tc) {
struct region *r; struct region *r;
struct faction *f1, *f2; struct faction *f1;
unit *u1; unit *u1;
building *b1; building *b1;
message *msg; message *msg;
@ -71,7 +62,6 @@ static void test_magicresistance_building(CuTest *tc) {
f1 = test_create_faction(test_create_race("human")); f1 = test_create_faction(test_create_race("human"));
u1 = test_create_unit(f1, r); u1 = test_create_unit(f1, r);
f2 = test_create_faction(test_create_race("human"));
b1 = test_create_building(r, test_create_buildingtype("castle")); b1 = test_create_building(r, test_create_buildingtype("castle"));
c = create_curse(u1, &b1->attribs, ct_find("magicresistance"), 10, 20, 30, 0); c = create_curse(u1, &b1->attribs, ct_find("magicresistance"), 10, 20, 30, 0);