From bfac5462be7da58bc84032462307a150314b669a Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 14 Apr 2018 13:37:47 +0000 Subject: Remove Fl_Pixmap::prepare() and Fl_Bitmap::prepare() that were used only once. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12834 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Bitmap.H | 2 -- FL/Fl_Graphics_Driver.H | 12 +----------- FL/Fl_Pixmap.H | 2 -- 3 files changed, 1 insertion(+), 15 deletions(-) (limited to 'FL') diff --git a/FL/Fl_Bitmap.H b/FL/Fl_Bitmap.H index 79eba0a4b..47818e7f9 100644 --- a/FL/Fl_Bitmap.H +++ b/FL/Fl_Bitmap.H @@ -40,8 +40,6 @@ public: int alloc_array; private: - int prepare(int XP, int YP, int WP, int HP, int &cx, int &cy, - int &X, int &Y, int &W, int &H); /** for internal use */ fl_uintptr_t id_; int cache_w_, cache_h_; // size of bitmap when cached diff --git a/FL/Fl_Graphics_Driver.H b/FL/Fl_Graphics_Driver.H index 05398c4c3..b1ec64c07 100644 --- a/FL/Fl_Graphics_Driver.H +++ b/FL/Fl_Graphics_Driver.H @@ -248,17 +248,7 @@ protected: static Fl_Color* pixmap_bg_color(Fl_Pixmap *pm) {return &(pm->pixmap_bg_color);} /** For internal library use only */ static void draw_empty(Fl_Image* img, int X, int Y) {img->draw_empty(X, Y);} - /** Accessor to a private member function of Fl_Bitmap */ - static int prepare(Fl_Bitmap *bm, int XP, int YP, int WP, int HP, int &cx, int &cy, - int &X, int &Y, int &W, int &H) { - return bm->prepare(XP,YP,WP,HP,cx,cy,X,Y,W,H); - } - /** Accessor to a private member function of Fl_Pixmap */ - static int prepare(Fl_Pixmap *pm, int XP, int YP, int WP, int HP, int &cx, int &cy, - int &X, int &Y, int &W, int &H) { - return pm->prepare(XP,YP,WP,HP,cx,cy,X,Y,W,H); - } - + Fl_Graphics_Driver(); void cache_size(Fl_Image *img, int &width, int &height); public: diff --git a/FL/Fl_Pixmap.H b/FL/Fl_Pixmap.H index d5c0612db..b6eb178d1 100644 --- a/FL/Fl_Pixmap.H +++ b/FL/Fl_Pixmap.H @@ -40,8 +40,6 @@ class FL_EXPORT Fl_Pixmap : public Fl_Image { void copy_data(); void delete_data(); void set_data(const char * const *p); - int prepare(int XP, int YP, int WP, int HP, int &cx, int &cy, - int &X, int &Y, int &W, int &H); protected: void measure(); -- cgit v1.2.3