summaryrefslogtreecommitdiff
path: root/src/cairo-path.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2010-12-09 21:59:43 +0100
committerAndrea Canciani <ranma42@gmail.com>2010-12-10 10:49:37 +0100
commit83605de9958696d47b15baa2c95731bc076ff368 (patch)
treef07a75fe01596cdc8418bf583387a84521a62df6 /src/cairo-path.c
parentf317a31b3fd14949edaca70f896c8a3cdecfce18 (diff)
path: Cleanup unused current_point
The code keeps track of the current point but doesn't use it. Remove it to clean up.
Diffstat (limited to 'src/cairo-path.c')
-rw-r--r--src/cairo-path.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/cairo-path.c b/src/cairo-path.c
index 28182c0e..88a730b3 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,8 +112,6 @@ _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,
@@ -150,7 +141,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 +165,6 @@ _cpp_move_to (void *closure,
cpp->data += data->header.length;
- cpp->current_point = *point;
-
return CAIRO_STATUS_SUCCESS;
}
@@ -202,8 +190,6 @@ _cpp_line_to (void *closure,
cpp->data += data->header.length;
- cpp->current_point = *point;
-
return CAIRO_STATUS_SUCCESS;
}
@@ -246,8 +232,6 @@ _cpp_curve_to (void *closure,
cpp->data += data->header.length;
- cpp->current_point = *p3;
-
return CAIRO_STATUS_SUCCESS;
}
@@ -276,8 +260,6 @@ _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);