From fcdc525dde52c3bf7124d00a98b6be64ca522cb9 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 17 Jan 2008 14:47:43 +0000 Subject: [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. --- src/cairo-xlib-screen.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/cairo-xlib-screen.c') diff --git a/src/cairo-xlib-screen.c b/src/cairo-xlib-screen.c index f8d59360..b759a85e 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)) -- cgit v1.2.3