Automatic commit
authorFrancois Fleuret <francois@fleuret.org>
Fri, 22 Jan 2010 09:45:45 +0000 (10:45 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Fri, 22 Jan 2010 09:45:45 +0000 (10:45 +0100)
misc.cc
misc.h

diff --git a/misc.cc b/misc.cc
index 2f766a6..ddcaf6d 100644 (file)
--- a/misc.cc
+++ b/misc.cc
@@ -28,15 +28,6 @@ using namespace std;
 
 #include "misc.h"
 
 
 #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;
 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 (file)
--- 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);
 
 
 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);
 char *next_word(char *buffer, char *r, int buffer_size);
 
 void random_permutation(int *val, int nb);