From afbdbb25b9dc92460871abbf7e8295b630141d42 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 12 Jan 2026 09:42:39 +0100 Subject: Function Fl::Private::cairo_make_current(void *gc) is not used anywhere in FLTK --- src/Fl_Cairo.cxx | 3 +++ src/Fl_Private.H | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_Cairo.cxx b/src/Fl_Cairo.cxx index 5f9a18ee4..1b830c045 100644 --- a/src/Fl_Cairo.cxx +++ b/src/Fl_Cairo.cxx @@ -209,6 +209,8 @@ static cairo_surface_t *cairo_create_surface(void *gc, int W, int H) { #endif } + +#if 0 // this non-public function appears not to be used anywhere in FLTK /** Creates a Cairo context from a \a gc only, gets its window size or offscreen size if fl_window is null. @@ -251,6 +253,7 @@ cairo_t *Fl::Private::cairo_make_current(void *gc) { cairo_state_.cc(c); return c; } +#endif /** Creates a Cairo context from a \p gc and the given size. diff --git a/src/Fl_Private.H b/src/Fl_Private.H index becfbc17c..11c4b5dd9 100644 --- a/src/Fl_Private.H +++ b/src/Fl_Private.H @@ -65,7 +65,9 @@ FL_EXPORT inline void set_idle_(Fl_Old_Idle_Handler cb) { idle_ = cb; } #ifdef FLTK_HAVE_CAIRO -FL_EXPORT extern cairo_t *cairo_make_current(void *gc); +#if 0 // this non-public function appears not to be used anywhere in FLTK + FL_EXPORT extern cairo_t *cairo_make_current(void *gc); +#endif FL_EXPORT extern cairo_t *cairo_make_current(void *gc, int W, int H); FL_EXPORT extern Fl_Cairo_State cairo_state_; -- cgit v1.2.3