]> granicus.if.org Git - graphviz/commitdiff
remove unused excute_system_command
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 23 Jun 2021 03:44:10 +0000 (20:44 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 25 Jun 2021 13:52:00 +0000 (06:52 -0700)
This function appears to have a typo in its name and also do something quite
unsafe.

lib/sparse/general.c
lib/sparse/general.h

index 4e5402570dd17b46ce737e57f9357983f9a59ef0..7751c5c7f37612fa5fa044ef0612fc2cd2ecbe00 100644 (file)
@@ -183,14 +183,6 @@ int excute_system_command3(char *s1, char *s2, char *s3){
   return system(c);
 }
 
-int excute_system_command(char *s1, char *s2){
-  char c[1000];
-
-  strcpy(c, s1);
-  strcat(c, s2);
-  return system(c);
-}
-
 real distance_cropped(real *x, int dim, int i, int j){
   int k;
   real dist = 0.;
index 1112f9ee63dc6d7867781fc7238b0b0be9c6322e..9215791663f4d080ab9559fd3e049e8f6d86f6c6 100644 (file)
@@ -112,7 +112,6 @@ void vector_print(char *s, int n, real *x);
 
 
 int excute_system_command3(char *s1, char *s2, char *s3);
-int excute_system_command(char *s1, char *s2);
 
 #define MINDIST 1.e-15