From a05ae33e20b09ab952ddbbf6762d5cfec77e4943 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 2 Jul 2025 16:16:48 +0200 Subject: Remove deprecated methods and functions In FLTK 1.5 we remove most (but not all) methods and functions that were deprecated in FLTK 1.3 or earlier. --- src/fl_ask.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/fl_ask.cxx') diff --git a/src/fl_ask.cxx b/src/fl_ask.cxx index 49486716a..205979d7e 100644 --- a/src/fl_ask.cxx +++ b/src/fl_ask.cxx @@ -1,7 +1,7 @@ // // Standard dialog functions for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2022 by Bill Spitzak and others. +// Copyright 1998-2025 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -29,7 +29,7 @@ - fl_alert() - fl_beep() - fl_message() - - fl_ask() + - fl_ask() // deprecated since 1.1.7 (2006), see comment in FL/fl_ask.H - fl_choice() - fl_input() - fl_input_str() @@ -129,6 +129,8 @@ void fl_alert(const char *fmt, ...) { va_end(ap); } +#if FLTK_INCLUDE_FL_ASK // see FL/fl_ask.H + /** Shows a dialog displaying the \p fmt message, this dialog features 2 yes/no buttons. @@ -154,6 +156,8 @@ int fl_ask(const char *fmt, ...) { return r; } +#endif // FLTK_INCLUDE_FL_ASK + /** Shows a dialog displaying the printf style \p fmt message. This dialog features up to 3 customizable choice buttons -- cgit v1.2.3