Base: Remove old unused C-style function

Those function was used by a commented code, hence never called.
Since it don't have been change for a long time,
it should be safe to remove them.
This commit is contained in:
Yann LEROY
2022-02-03 20:30:31 +01:00
committed by wwmayer
parent 2746035850
commit cafb8601e0

View File

@@ -556,39 +556,6 @@ void Matrix_gauss(Matrix a, Matrix b)
}
}
}
/* ------------------------------------------------------------------------
Matrix_identity(Matrix a)
Puts an identity matrix in matrix a
------------------------------------------------------------------------ */
void Matrix_identity (Matrix a)
{
int i;
for (i = 0; i < 16; i++) a[i] = 0;
a[0] = 1;
a[5] = 1;
a[10] = 1;
a[15] = 1;
}
/* ------------------------------------------------------------------------
Matrix_invert(Matrix a, Matrix inva)
Inverts Matrix a and places the result in inva.
Relies on the Gaussian Elimination code above. (See Numerical recipes).
------------------------------------------------------------------------ */
void Matrix_invert (Matrix a, Matrix inva)
{
double temp[16];
int i;
for (i = 0; i < 16; i++)
temp[i] = a[i];
Matrix_identity(inva);
Matrix_gauss(temp,inva);
}
void Matrix4D::inverseOrthogonal()
{
@@ -609,7 +576,6 @@ void Matrix4D::inverseGauss ()
0 ,0 ,0 ,1 };
getGLMatrix(matrix);
// Matrix_invert(matrix, inversematrix);
Matrix_gauss(matrix,inversematrix);
setGLMatrix(inversematrix);