From 24a62ecf7634c18703e7551de58aecd0bb09a01c Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 25 Jun 2021 21:17:00 -0700 Subject: [PATCH] remove unused vector_subtract_from --- lib/sparse/general.c | 6 ------ lib/sparse/general.h | 1 - 2 files changed, 7 deletions(-) diff --git a/lib/sparse/general.c b/lib/sparse/general.c index f9e2bec66..66893e321 100644 --- a/lib/sparse/general.c +++ b/lib/sparse/general.c @@ -45,12 +45,6 @@ int *random_permutation(int n){ } -real* vector_subtract_from(int n, real *x, real *y){ - /* y = x-y */ - int i; - for (i = 0; i < n; i++) y[i] = y[i] - x[i]; - return y; -} real* vector_subtract_to(int n, real *x, real *y){ /* y = x-y */ int i; diff --git a/lib/sparse/general.h b/lib/sparse/general.h index bc2aa6ac1..1f2d2676a 100644 --- a/lib/sparse/general.h +++ b/lib/sparse/general.h @@ -85,7 +85,6 @@ extern int *random_permutation(int n);/* random permutation of 0 to n-1 */ real* vector_subtract_to(int n, real *x, real *y);/* y = x-y */ -real* vector_subtract_from(int n, real *x, real *y);/* y = y-x */ real vector_product(int n, real *x, real *y); -- 2.40.0