/* If @notify is TRUE then the destroy notify functions are called for the key and value of the hash node.  */
static void g_hash_table_remove_node(GHashTable *hash_table, gint i, gboolean notify)
/* If @notify is TRUE then the destroy notify functions are called for the key and value of the hash node.  */
static void g_hash_table_remove_node(GHashTable *hash_table, gint i, gboolean notify)
{
  gpointer key;
  gpointer value;
  key = hash_table->keys[i];
  value = hash_table->values[i];
  hash_table->hashes[i] = TOMBSTONE_HASH_VALUE;
  hash_table->keys[i] = NULL;
  hash_table->values[i] = NULL;
  hash_table->nnodes--;
  if (notify && hash_table->key_destroy_func)
    hash_table->key_destroy_func (key);
  if (notify && hash_table->value_destroy_func)
    hash_table->value_destroy_func (value);
}