From d102e466d6a1047279dab57bcb13a74a7fddbe7f Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sat, 21 Oct 2023 21:39:36 +0200 Subject: Remove duplicated code that was commented out, fix includes ... and prevent confusing doxygen --- src/Fl_Preferences.cxx | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) (limited to 'src/Fl_Preferences.cxx') diff --git a/src/Fl_Preferences.cxx b/src/Fl_Preferences.cxx index cca5e05cf..6a6150fad 100644 --- a/src/Fl_Preferences.cxx +++ b/src/Fl_Preferences.cxx @@ -19,15 +19,14 @@ #include "Fl_System_Driver.H" #include #include -#include #include +#include +#include +#include "flstring.h" #include #include #include -#include -#include -#include "flstring.h" char Fl_Preferences::nameBuffer[128]; @@ -845,7 +844,7 @@ char Fl_Preferences::get( const char *key, char *&text, const char *defaultValue return ( v != defaultValue ); } -///** +// /** // Reads an entry from the group. A default value must be // supplied. The return value indicates if the value was available // (non-zero) or the default was used (0). @@ -872,7 +871,7 @@ char Fl_Preferences::get( const char *key, char *&text, const char *defaultValue // } //} -///** +// /** // Sets an entry (name/value pair). The return value indicates if there // was a problem storing the data in memory. However it does not // reflect if the value was actually stored in the preference file. @@ -1056,20 +1055,6 @@ char Fl_Preferences::set( const char *key, const void *data, int dsize ) { return 1; } -///** -// Sets an entry (name/value pair). The return value indicates if there -// was a problem storing the data in memory. However it does not -// reflect if the value was actually stored in the preference file. -// -// \param[in] entry name of entry -// \param[in] value set this entry to value (stops at the first nul character). -// \return 0 if setting the value failed -// */ -//char Fl_Preferences::set( const char *entry, const Fl_String &value ) { -// return set(entry, value.c_str()); -//} - - /** Returns the size of the value part of an entry. -- cgit v1.2.3