really remove g_direct_compare() (this includes its declaration ;).

This commit is contained in:
Tim Janik 1998-04-08 00:51:05 +00:00
parent 1c77b5f926
commit 2ab408a700
2 changed files with 7 additions and 6 deletions

View File

@ -782,11 +782,12 @@ GArray* g_rarray_truncate (GArray *array,
gint g_str_equal (const gpointer v,
const gpointer v2);
guint g_str_hash (const gpointer v);
/* These two "hash" functions actually just return the value and/or
comparison of the pointers themselves - useful for hashing
on an int value or something like that */
gint g_direct_compare(gpointer a, gpointer b);
guint g_direct_hash(gpointer key);
/* This "hash" function will just return the key's adress as an
* unsigned integer. Useful for hashing on plain adresses or
* simple integer values.
*/
guint g_direct_hash (gpointer key);
/* GScanner: Flexible lexical scanner for general purpose.

View File

@ -912,6 +912,6 @@ g_parse_debug_string (const gchar *string,
guint
g_direct_hash(gpointer key)
{
return (guint)key;
return (guint) key;
}