From 4dc5a80301293b8a01a000383a212d978cd3578f Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 22 Jun 2021 20:45:08 -0700 Subject: [PATCH] remove unused excute_system_command3 Similar to the previous commit, this function seems to have a typoed name and unsafe behavior. --- lib/sparse/general.c | 9 --------- lib/sparse/general.h | 3 --- 2 files changed, 12 deletions(-) diff --git a/lib/sparse/general.c b/lib/sparse/general.c index 7751c5c7f..571c5c893 100644 --- a/lib/sparse/general.c +++ b/lib/sparse/general.c @@ -174,15 +174,6 @@ void vector_sort_int(int n, int *v){ qsort(v, n, sizeof(int), comp_ascend_int); } -int excute_system_command3(char *s1, char *s2, char *s3){ - char c[1000]; - - strcpy(c, s1); - strcat(c, s2); - strcat(c, s3); - return system(c); -} - real distance_cropped(real *x, int dim, int i, int j){ int k; real dist = 0.; diff --git a/lib/sparse/general.h b/lib/sparse/general.h index 921579166..f183d2853 100644 --- a/lib/sparse/general.h +++ b/lib/sparse/general.h @@ -110,9 +110,6 @@ void vector_print(char *s, int n, real *x); #define MACHINEACC 1.0e-16 #define SQRT_MACHINEACC 1.0e-8 - -int excute_system_command3(char *s1, char *s2, char *s3); - #define MINDIST 1.e-15 enum {UNMATCHED = -1}; -- 2.40.0