From 9e0ac2b4acbb628a7ff51e779b5396569aed8269 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Sat, 1 Mar 2008 22:24:40 +0000 Subject: remove assert_close (bzr r4916) --- src/libnr/nr-matrix.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/libnr/nr-matrix.cpp') diff --git a/src/libnr/nr-matrix.cpp b/src/libnr/nr-matrix.cpp index db01b966e..ed482f46f 100644 --- a/src/libnr/nr-matrix.cpp +++ b/src/libnr/nr-matrix.cpp @@ -590,28 +590,6 @@ bool matrix_equalp(Matrix const &m0, Matrix const &m1, NR::Coord const epsilon) - - -/** - * A home-made assertion. Stop if the two matrixes are not 'close' to - * each other. - */ -void assert_close(Matrix const &a, Matrix const &b) -{ - if (!matrix_equalp(a, b, 1e-3)) { - fprintf(stderr, - "a = | %g %g |,\tb = | %g %g |\n" - " | %g %g | \t | %g %g |\n" - " | %g %g | \t | %g %g |\n", - a[0], a[1], b[0], b[1], - a[2], a[3], b[2], b[3], - a[4], a[5], b[4], b[5]); - std::abort(); - } -} - - - } //namespace NR -- cgit v1.2.3