summaryrefslogtreecommitdiff
path: root/src/cairo-array.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-05-25 23:25:38 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-06-01 18:04:13 +0100
commite83e113eae9e7cb3e09719bfc0ad68450faf3ecd (patch)
tree0663896435b074127d2b53341e8ee39783e7e353 /src/cairo-array.c
parent247e76b923d54f639e2ca50c8da945c15b691158 (diff)
downloadcairo-e83e113eae9e7cb3e09719bfc0ad68450faf3ecd.tar.gz
[surface] Speed up cairo_surface_get_mime_data().
The number of mime-types attached to a surface is usually small, typically zero. Therefore it is quicker to do a strcmp() against each key in the private mime-data array than it is to intern the string (i.e. compute a hash, search the hash table, and do a final strcmp).
Diffstat (limited to 'src/cairo-array.c')
-rw-r--r--src/cairo-array.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/cairo-array.c b/src/cairo-array.c
index 77e575ff2..fcd1246dc 100644
--- a/src/cairo-array.c
+++ b/src/cairo-array.c
@@ -352,14 +352,6 @@ _cairo_array_size (cairo_array_t *array)
return array->size;
}
-/* #cairo_user_data_array_t */
-
-typedef struct {
- const cairo_user_data_key_t *key;
- void *user_data;
- cairo_destroy_func_t destroy;
-} cairo_user_data_slot_t;
-
/**
* _cairo_user_data_array_init:
* @array: a #cairo_user_data_array_t