summaryrefslogtreecommitdiff
path: root/src/cairo-path.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cairo-path.c')
-rw-r--r--src/cairo-path.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/cairo-path.c b/src/cairo-path.c
index 28182c0..d9f08ac 100644
--- a/src/cairo-path.c
+++ b/src/cairo-path.c
@@ -55,7 +55,6 @@ static const cairo_path_t _cairo_path_nil = { CAIRO_STATUS_NO_MEMORY, NULL, 0 };
/* Closure for path interpretation. */
typedef struct cairo_path_count {
int count;
- cairo_point_t current_point;
} cpc_t;
static cairo_status_t
@@ -66,8 +65,6 @@ _cpc_move_to (void *closure,
cpc->count += 2;
- cpc->current_point = *point;
-
return CAIRO_STATUS_SUCCESS;
}
@@ -79,8 +76,6 @@ _cpc_line_to (void *closure,
cpc->count += 2;
- cpc->current_point = *point;
-
return CAIRO_STATUS_SUCCESS;
}
@@ -94,8 +89,6 @@ _cpc_curve_to (void *closure,
cpc->count += 4;
- cpc->current_point = *p3;
-
return CAIRO_STATUS_SUCCESS;
}
@@ -119,12 +112,9 @@ _cairo_path_count (cairo_path_t *path,
cpc_t cpc;
cpc.count = 0;
- cpc.current_point.x = 0;
- cpc.current_point.y = 0;
if (flatten) {
status = _cairo_path_fixed_interpret_flat (path_fixed,
- CAIRO_DIRECTION_FORWARD,
_cpc_move_to,
_cpc_line_to,
_cpc_close_path,
@@ -132,7 +122,6 @@ _cairo_path_count (cairo_path_t *path,
tolerance);
} else {
status = _cairo_path_fixed_interpret (path_fixed,
- CAIRO_DIRECTION_FORWARD,
_cpc_move_to,
_cpc_line_to,
_cpc_curve_to,
@@ -150,7 +139,6 @@ _cairo_path_count (cairo_path_t *path,
typedef struct cairo_path_populate {
cairo_path_data_t *data;
cairo_gstate_t *gstate;
- cairo_point_t current_point;
} cpp_t;
static cairo_status_t
@@ -175,8 +163,6 @@ _cpp_move_to (void *closure,
cpp->data += data->header.length;
- cpp->current_point = *point;
-
return CAIRO_STATUS_SUCCESS;
}
@@ -202,8 +188,6 @@ _cpp_line_to (void *closure,
cpp->data += data->header.length;
- cpp->current_point = *point;
-
return CAIRO_STATUS_SUCCESS;
}
@@ -246,8 +230,6 @@ _cpp_curve_to (void *closure,
cpp->data += data->header.length;
- cpp->current_point = *p3;
-
return CAIRO_STATUS_SUCCESS;
}
@@ -276,13 +258,10 @@ _cairo_path_populate (cairo_path_t *path,
cpp.data = path->data;
cpp.gstate = gstate;
- cpp.current_point.x = 0;
- cpp.current_point.y = 0;
if (flatten) {
double tolerance = _cairo_gstate_get_tolerance (gstate);
status = _cairo_path_fixed_interpret_flat (path_fixed,
- CAIRO_DIRECTION_FORWARD,
_cpp_move_to,
_cpp_line_to,
_cpp_close_path,
@@ -290,7 +269,6 @@ _cairo_path_populate (cairo_path_t *path,
tolerance);
} else {
status = _cairo_path_fixed_interpret (path_fixed,
- CAIRO_DIRECTION_FORWARD,
_cpp_move_to,
_cpp_line_to,
_cpp_curve_to,