From: Francois Fleuret Date: Mon, 16 Mar 2009 11:41:47 +0000 (+0100) Subject: Applied Olivier's patches. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=251198a1d6d29585c5730c65ecbc85ccd3f4e834;p=selector.git Applied Olivier's patches. --- diff --git a/selector.cc b/selector.cc index f4d7930..de06b45 100644 --- a/selector.cc +++ b/selector.cc @@ -58,23 +58,6 @@ int remove_duplicates = 0; ////////////////////////////////////////////////////////////////////// -// int test_and_set_hash(char *s, char **hashed, int hash_size) { - // uint32_t code = 0, mask; - // int result; - - // for(int k = 0; s[k]; k++) { - // code += ((uint32_t) (s[k])) << (8 * k%4); - // } - - // code = code%hash_table_size; - - // if(hashed[code]) { - // } else { - // } -// } - -////////////////////////////////////////////////////////////////////// - // This looks severely Linux-only ... void inject_into_tty_buffer(char *line) {