diff --git a/FL/Fl_Copy_Surface.H b/FL/Fl_Copy_Surface.H index 57630b126..753068cb3 100644 --- a/FL/Fl_Copy_Surface.H +++ b/FL/Fl_Copy_Surface.H @@ -50,7 +50,6 @@ class FL_EXPORT Fl_Copy_Surface : public Fl_Widget_Surface { private: class Helper; Helper *platform_surface; - static Helper *newPlatformSurface(int w, int h); protected: void translate(int x, int y); void untranslate(); diff --git a/src/Fl_Copy_Surface.cxx b/src/Fl_Copy_Surface.cxx index 7b7b0fc8b..78ffa85a0 100644 --- a/src/Fl_Copy_Surface.cxx +++ b/src/Fl_Copy_Surface.cxx @@ -48,13 +48,9 @@ private: #endif -Fl_Copy_Surface::Helper *Fl_Copy_Surface::newPlatformSurface(int w, int h) { - return new Helper(w, h); -} - /** the constructor */ Fl_Copy_Surface::Fl_Copy_Surface(int w, int h) : Fl_Widget_Surface(NULL) { - platform_surface = newPlatformSurface(w, h); + platform_surface = new Helper(w, h); driver(platform_surface->driver()); }