From 75f911dbc913503b8ef21e735c43c9f02140b4dd Mon Sep 17 00:00:00 2001
From: Joris <joris.dauphin@gmail.com>
Date: Thu, 14 Jun 2012 15:35:09 +0200
Subject: [PATCH] Remove no more used functions MakeMatrix

---
 src/include/pathfinder.h      |  2 --
 src/pathfinder/pathfinder.cpp | 11 -----------
 2 files changed, 13 deletions(-)

diff --git a/src/include/pathfinder.h b/src/include/pathfinder.h
index a9412751c..0458d6d4d 100644
--- a/src/include/pathfinder.h
+++ b/src/include/pathfinder.h
@@ -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);
diff --git a/src/pathfinder/pathfinder.cpp b/src/pathfinder/pathfinder.cpp
index 78978d20d..a43696978 100644
--- a/src/pathfinder/pathfinder.cpp
+++ b/src/pathfinder/pathfinder.cpp
@@ -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
 ----------------------------------------------------------------------------*/