summaryrefslogtreecommitdiff
path: root/src/cairo-toy-font-face.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-07-30 18:29:29 +0200
committerAndrea Canciani <ranma42@gmail.com>2011-07-31 16:46:36 +0200
commit8f8da19fd47a51724e035a076628d38fde48863c (patch)
tree2494b6e6bcfb46a158c6f22e4c8e81e760251172 /src/cairo-toy-font-face.c
parent1f2dc2e06a2c2daabeefbea4c32cdf55bdf6b338 (diff)
downloadcairo-8f8da19fd47a51724e035a076628d38fde48863c.tar.gz
font-face: Cleanup backend-specific destruction code
The check for NULL and nil font faces is performed in the shared code. There is no need to duplicate it (in fact, quartz-font and ft-font don't do it).
Diffstat (limited to 'src/cairo-toy-font-face.c')
-rw-r--r--src/cairo-toy-font-face.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/cairo-toy-font-face.c b/src/cairo-toy-font-face.c
index e82d535fc..363b9a284 100644
--- a/src/cairo-toy-font-face.c
+++ b/src/cairo-toy-font-face.c
@@ -348,10 +348,6 @@ _cairo_toy_font_face_destroy (void *abstract_face)
cairo_toy_font_face_t *font_face = abstract_face;
cairo_hash_table_t *hash_table;
- if (font_face == NULL ||
- CAIRO_REFERENCE_COUNT_IS_INVALID (&font_face->base.ref_count))
- return;
-
hash_table = _cairo_toy_font_face_hash_table_lock ();
/* All created objects must have been mapped in the hash table. */
assert (hash_table != NULL);