From 4f962ae9999b81d18b02a46d2a64851e7a95f777 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 25 Dec 2014 00:45:52 +0100 Subject: [PATCH] remove dead code --- src/laws.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/laws.c b/src/laws.c index 115b5792a..0c01f0471 100755 --- a/src/laws.c +++ b/src/laws.c @@ -818,20 +818,6 @@ static void inactivefaction(faction * f) } } -static void transfer_faction(faction * f, faction * f2) -{ - unit *u, *un; - - for (u = f->units; u;) { - un = u->nextF; - if (!unit_has_cursed_item(u) && - !has_skill(u, SK_MAGIC) && !has_skill(u, SK_ALCHEMY)) { - u_setfaction(u, f2); - } - u = un; - } -} - /* test if the unit can slip through a siege undetected. * returns 0 if siege is successful, or 1 if the building is either * not besieged or the unit can slip through the siege due to better stealth.