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).
This commit is contained in:
Andrea Canciani 2011-07-30 18:29:29 +02:00
parent 1f2dc2e06a
commit 8f8da19fd4
2 changed files with 0 additions and 8 deletions

View file

@ -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);

View file

@ -2098,10 +2098,6 @@ _cairo_win32_font_face_destroy (void *abstract_face)
cairo_win32_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_win32_font_face_hash_table_lock ();
/* All created objects must have been mapped in the hash table. */
assert (hash_table != NULL);