# HG changeset patch # User Thinker K.F. Li # Date 1258032670 -28800 # Node ID e54cd19cec2864225995eb010e53bfc095f454e7 # Parent 4dc0be6c044a3eefadbbe05756efb5bbbc23b8f0 Remove unnecessary functions diff -r 4dc0be6c044a -r e54cd19cec28 include/mb_graph_engine_cairo.h --- a/include/mb_graph_engine_cairo.h Thu Nov 12 21:30:35 2009 +0800 +++ b/include/mb_graph_engine_cairo.h Thu Nov 12 21:31:10 2009 +0800 @@ -28,11 +28,9 @@ #define mbe_scaled_font_destroy cairo_scaled_font_destroy #define mbe_font_face_reference cairo_font_face_reference #define mbe_set_source_surface cairo_set_source_surface -#define mbe_scaled_font_status cairo_scaled_font_status #define mbe_pattern_set_matrix cairo_pattern_set_matrix #define mbe_font_face_destroy cairo_font_face_destroy #define mbe_paint_with_alpha cairo_paint_with_alpha -#define mbe_font_face_status cairo_font_face_status #define mbe_surface_destroy cairo_surface_destroy #define mbe_set_source_rgba cairo_set_source_rgba #define mbe_set_scaled_font cairo_set_scaled_font @@ -68,7 +66,6 @@ typedef cairo_font_face_t mbe_font_face_t; typedef cairo_surface_t mbe_surface_t; typedef cairo_pattern_t mbe_pattern_t; -typedef cairo_status_t mbe_status_t; typedef cairo_matrix_t mbe_matrix_t; typedef cairo_t mbe_t; typedef float co_aix; diff -r 4dc0be6c044a -r e54cd19cec28 include/mb_graph_engine_skia.h --- a/include/mb_graph_engine_skia.h Thu Nov 12 21:30:35 2009 +0800 +++ b/include/mb_graph_engine_skia.h Thu Nov 12 21:31:10 2009 +0800 @@ -25,12 +25,10 @@ #define mbe_scaled_font_destroy #define mbe_font_face_reference #define mbe_set_source_surface -#define mbe_scaled_font_status #define mbe_scaled_font_create #define mbe_pattern_set_matrix #define mbe_font_face_destroy #define mbe_paint_with_alpha -#define mbe_font_face_status #define mbe_surface_destroy #define mbe_set_source_rgba #define mbe_set_scaled_font @@ -66,7 +64,6 @@ typedef cairo_font_face_t mbe_font_face_t; typedef cairo_surface_t mbe_surface_t; typedef cairo_pattern_t mbe_pattern_t; -typedef cairo_status_t mbe_status_t; typedef cairo_matrix_t mbe_matrix_t; typedef cairo_t mbe_t; typedef float co_aix; diff -r 4dc0be6c044a -r e54cd19cec28 src/shape_stext.c --- a/src/shape_stext.c Thu Nov 12 21:30:35 2009 +0800 +++ b/src/shape_stext.c Thu Nov 12 21:31:10 2009 +0800 @@ -604,12 +604,9 @@ static void test_query_font_face(void) { mb_font_face_t *face; - mbe_status_t status; face = query_font_face("serif", MB_FONT_SLANT_ROMAN, 100); CU_ASSERT(face != NULL); - status = mbe_font_face_status((mbe_font_face_t *)face); - CU_ASSERT(status == MBE_STATUS_SUCCESS); free_font_face(face); } @@ -619,17 +616,12 @@ co_aix matrix[6] = {5, 0, 0, 0, 5, 0}; mb_font_face_t *face; mb_scaled_font_t *scaled; - mbe_status_t status; face = query_font_face("serif", MB_FONT_SLANT_ROMAN, 100); CU_ASSERT(face != NULL); - status = mbe_font_face_status((mbe_font_face_t *)face); - CU_ASSERT(status == MBE_STATUS_SUCCESS); scaled = make_scaled_font_face_matrix(face, matrix); CU_ASSERT(scaled != NULL); - status = mbe_scaled_font_status((mbe_scaled_font_t *)scaled); - CU_ASSERT(status == MBE_STATUS_SUCCESS); scaled_font_free(scaled); free_font_face(face);