remove dead code

This commit is contained in:
Enno Rehling 2014-12-25 00:45:52 +01:00
parent 000bdebc82
commit 4f962ae999
1 changed files with 0 additions and 14 deletions

View File

@ -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. /* test if the unit can slip through a siege undetected.
* returns 0 if siege is successful, or 1 if the building is either * 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. * not besieged or the unit can slip through the siege due to better stealth.