summaryrefslogtreecommitdiff
path: root/src/cairo-xlib-screen.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-01-17 14:47:43 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2008-01-17 14:51:22 +0000
commitfcdc525dde52c3bf7124d00a98b6be64ca522cb9 (patch)
tree29ea4dae4b9db8b0ceb606a0e1065d3110a411cc /src/cairo-xlib-screen.c
parent7b1a0eddacb290ae0d67fa974da1697b2c9ce38c (diff)
downloadcairo-fcdc525dde52c3bf7124d00a98b6be64ca522cb9.tar.gz
[cairo-xlib] Remove the NULL safeguards.
No need to guarding against the pointer being NULL on internal functions as no path can call the function will a NULL pointer and no path should ever try, which in any case it would be better to crash immediately.
Diffstat (limited to 'src/cairo-xlib-screen.c')
-rw-r--r--src/cairo-xlib-screen.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/cairo-xlib-screen.c b/src/cairo-xlib-screen.c
index f8d593608..b759a85e3 100644
--- a/src/cairo-xlib-screen.c
+++ b/src/cairo-xlib-screen.c
@@ -244,9 +244,6 @@ _cairo_xlib_init_screen_font_options (Display *dpy, cairo_xlib_screen_info_t *in
cairo_xlib_screen_info_t *
_cairo_xlib_screen_info_reference (cairo_xlib_screen_info_t *info)
{
- if (info == NULL)
- return NULL;
-
assert (CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&info->ref_count));
_cairo_reference_count_inc (&info->ref_count);
@@ -273,9 +270,6 @@ _cairo_xlib_screen_info_destroy (cairo_xlib_screen_info_t *info)
cairo_xlib_screen_info_t **prev;
cairo_xlib_screen_info_t *list;
- if (info == NULL)
- return;
-
assert (CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&info->ref_count));
if (! _cairo_reference_count_dec_and_test (&info->ref_count))