Remove no more used functions MakeMatrix

This commit is contained in:
Joris 2012-06-14 15:35:09 +02:00
parent d38ec2893e
commit 75f911dbc9
2 changed files with 0 additions and 13 deletions
src

View file

@ -223,8 +223,6 @@ extern void FreePathfinder();
/// Create a matrix for the old pathfinder
extern unsigned char *CreateMatrix();
/// Allocate a new matrix and initialize
extern unsigned char *MakeMatrix();
/// Returns the next element of the path
extern int NextPathElement(CUnit &unit, short int *xdp, short int *ydp);

View file

@ -189,17 +189,6 @@ unsigned char *CreateMatrix()
return Matrix;
}
/**
** Allocate a new matrix and initialize
*/
unsigned char *MakeMatrix()
{
unsigned char *matrix = new unsigned char[(Map.Info.MapWidth + 2) * (Map.Info.MapHeight + 3) + 2];
InitMatrix(matrix);
return matrix;
}
/*----------------------------------------------------------------------------
-- PATH-FINDER USE
----------------------------------------------------------------------------*/