changeset 470:e54cd19cec28 Android_Skia

Remove unnecessary functions
author Thinker K.F. Li <thinker@branda.to>
date Thu, 12 Nov 2009 21:31:10 +0800
parents 4dc0be6c044a
children e98ae1407ca2
files include/mb_graph_engine_cairo.h include/mb_graph_engine_skia.h src/shape_stext.c
diffstat 3 files changed, 0 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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;
--- 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);