mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 02:08:03 +02:00
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:
parent
1f2dc2e06a
commit
8f8da19fd4
2 changed files with 0 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue