From: John Darrington Date: Sun, 13 Nov 2011 19:26:29 +0000 (+0100) Subject: Remove useless code X-Git-Tag: v0.7.9~92 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be3a7bd753e0582a6b7bbdc032bc0891ab2900d6;p=pspp-builds.git Remove useless code --- diff --git a/src/math/covariance.c b/src/math/covariance.c index be53672d..8e9f1db1 100644 --- a/src/math/covariance.c +++ b/src/math/covariance.c @@ -631,22 +631,6 @@ covariance_calculate (struct covariance *cov) static gsl_matrix * covariance_calculate_double_pass_unnormalized (struct covariance *cov) { - size_t i, j; - for (i = 0 ; i < cov->dim; ++i) - { - for (j = 0 ; j < cov->dim; ++j) - { - int idx; - double *x = gsl_matrix_ptr (cov->moments[MOMENT_VARIANCE], i, j); - - idx = cm_idx (cov, i, j); - if ( idx >= 0) - { - x = &cov->cm [idx]; - } - } - } - return cm_to_gsl (cov); }