From: Francois Fleuret Date: Fri, 22 Jan 2010 09:45:45 +0000 (+0100) Subject: Automatic commit X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=2a0245f26b7089c77d446d4a2ed2bcac60c02414;p=svrt.git Automatic commit --- diff --git a/misc.cc b/misc.cc index 2f766a6..ddcaf6d 100644 --- a/misc.cc +++ b/misc.cc @@ -28,15 +28,6 @@ using namespace std; #include "misc.h" -char *basename(char *name) { - char *result = name; - while(*name) { - if(*name == '/') result = name + 1; - name++; - } - return result; -} - char *next_word(char *buffer, char *r, int buffer_size) { char *s; s = buffer; diff --git a/misc.h b/misc.h index d5f956c..e9cabf4 100644 --- a/misc.h +++ b/misc.h @@ -107,8 +107,6 @@ inline scalar_t xi(scalar_t x) { scalar_t discrete_entropy(int *n, int nb); -char *basename(char *name); - char *next_word(char *buffer, char *r, int buffer_size); void random_permutation(int *val, int nb);