[cairo-commit] 2 commits - src/cairo.c src/cairo-gstate.c

Chris Wilson ickle at kemper.freedesktop.org
Wed Mar 26 06:13:48 PDT 2008


 src/cairo-gstate.c |   21 ---------------------
 src/cairo.c        |    6 +++---
 2 files changed, 3 insertions(+), 24 deletions(-)

New commits:
commit f676f18050383ecf26c36cdbba4ac81d2d45b042
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed Mar 26 08:43:23 2008 +0000

    [cairo] Fixup make check.
    
    make check demands that all function references in the docs are suffixed
    with ().

diff --git a/src/cairo.c b/src/cairo.c
index 8f82cb6..b540af3 100644
--- a/src/cairo.c
+++ b/src/cairo.c
@@ -2295,11 +2295,11 @@ cairo_in_fill (cairo_t *cr, double x, double y)
  * taken into account.
  *
  * Note that if the line width is set to exactly zero, then
- * cairo_stroke_extents will return an empty rectangle. Contrast with
+ * cairo_stroke_extents() will return an empty rectangle. Contrast with
  * cairo_path_extents() which can be used to compute the non-empty
  * bounds as the line width approaches zero.
  *
- * Note that cairo_stroke_extents must necessarily do more work to
+ * Note that cairo_stroke_extents() must necessarily do more work to
  * compute the precise inked areas in light of the stroke parameters,
  * so cairo_path_extents() may be more desirable for sake of
  * performance if non-inked path extents are desired.
@@ -2352,7 +2352,7 @@ cairo_stroke_extents (cairo_t *cr,
  * non-zero extents for some paths with no inked area, (such as a
  * simple line segment).
  *
- * Note that cairo_fill_extents must necessarily do more work to
+ * Note that cairo_fill_extents() must necessarily do more work to
  * compute the precise inked areas in light of the fill rule, so
  * cairo_path_extents() may be more desirable for sake of performance
  * if the non-inked path extents are desired.
commit 452a1de2a06b57a3ed1b149e152487505dbc04f8
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Tue Mar 25 16:50:33 2008 +0000

    [cairo-gstate] Remove dead code.
    
    Eliminate _cairo_gstate_recursive_apply_clip_path, as its last caller
    was removed over 2 years ago.

diff --git a/src/cairo-gstate.c b/src/cairo-gstate.c
index 5049399..cf9f31a 100644
--- a/src/cairo-gstate.c
+++ b/src/cairo-gstate.c
@@ -290,27 +290,6 @@ _cairo_gstate_restore (cairo_gstate_t **gstate)
     return CAIRO_STATUS_SUCCESS;
 }
 
-static cairo_status_t
-_cairo_gstate_recursive_apply_clip_path (cairo_gstate_t *gstate,
-					 cairo_clip_path_t *cpath)
-{
-    cairo_status_t status;
-
-    if (cpath == NULL)
-	return CAIRO_STATUS_SUCCESS;
-
-    status = _cairo_gstate_recursive_apply_clip_path (gstate, cpath->prev);
-    if (status)
-	return status;
-
-    return _cairo_clip_clip (&gstate->clip,
-			     &cpath->path,
-			     cpath->fill_rule,
-			     cpath->tolerance,
-			     cpath->antialias,
-			     gstate->target);
-}
-
 /**
  * _cairo_gstate_redirect_target:
  * @gstate: a #cairo_gstate_t


More information about the cairo-commit mailing list