diff options
author | Owen Taylor <owt1@cornell.edu> | 1998-02-13 03:47:25 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1998-02-13 03:47:25 +0000 |
commit | c43a50fe36661f6dd69267bcda27d044066b0abd (patch) | |
tree | eca469860677f0e2f14a94180ffa351e6871142b /glib | |
parent | 9dee8ee4e4fca545ae4b2a2d41aa748cdc8cac1a (diff) | |
download | gdk-pixbuf-c43a50fe36661f6dd69267bcda27d044066b0abd.tar.gz |
removed deprecated g_string_equal and g_string_hash.
Thu Feb 12 22:48:11 1998 Owen Taylor <owt1@cornell.edu>
* gstring.c glib.h: removed deprecated g_string_equal
and g_string_hash.
Diffstat (limited to 'glib')
-rw-r--r-- | glib/glib.h | 6 | ||||
-rw-r--r-- | glib/gstring.c | 27 |
2 files changed, 0 insertions, 33 deletions
diff --git a/glib/glib.h b/glib/glib.h index 32850def1..5c795d3a6 100644 --- a/glib/glib.h +++ b/glib/glib.h @@ -722,12 +722,6 @@ gint g_str_equal (const gpointer v, const gpointer v2); guint g_str_hash (const gpointer v); -/* Deprecated, use g_string_* - */ -gint g_string_equal (gpointer v, - gpointer v2); -guint g_string_hash (gpointer v); - /* GScanner: Flexible lexical scanner for general purpose. diff --git a/glib/gstring.c b/glib/gstring.c index ee3e083c8..607f2522a 100644 --- a/glib/gstring.c +++ b/glib/gstring.c @@ -72,33 +72,6 @@ g_str_hash (const gpointer v) return h /* % M */; } -/* Deprecated, use g_str_* ... */ - -gint -g_string_equal (gpointer v, gpointer v2) -{ - return strcmp ((gchar*) v, (gchar*)v2) == 0; -} - -/* a char* hash function from ASU */ -guint -g_string_hash (gpointer v) -{ - char *s = (char*)v; - char *p; - guint h=0, g; - - for(p = s; *p != '\0'; p += 1) { - h = ( h << 4 ) + *p; - if ( ( g = h & 0xf0000000 ) ) { - h = h ^ (g >> 24); - h = h ^ g; - } - } - - return h /* % M */; -} - /* String Chunks. */ |