(svn r3054) Remove the unsused function GetNumRailtypes()
authortron
Mon, 17 Oct 2005 10:09:37 +0000
changeset 2525 9b75e9239c38
parent 2524 5919ff778fde
child 2526 cae4842086a9
(svn r3054) Remove the unsused function GetNumRailtypes()
player.h
--- a/player.h	Sun Oct 16 15:00:22 2005 +0000
+++ b/player.h	Mon Oct 17 10:09:37 2005 +0000
@@ -219,21 +219,6 @@
 	return _local_player == _current_player;
 }
 
-/** Returns the number of rail types the player can build
-  * @param *p Player in question
-  */
-static inline int GetNumRailtypes(const Player *p)
-{
-	int num = 0;
-	int i;
-
-	for (i = 0; i < (int)sizeof(p->avail_railtypes) * 8; i++)
-		if (HASBIT(p->avail_railtypes, i)) num++;
-
-	assert(num <= RAILTYPE_END);
-	return num;
-}
-
 byte GetPlayerRailtypes(int p);
 
 /** Finds out if a Player has a certain railtype available