summaryrefslogtreecommitdiff
path: root/src/Fl_Preferences.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2023-10-21 21:39:36 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2023-10-21 21:39:36 +0200
commitd102e466d6a1047279dab57bcb13a74a7fddbe7f (patch)
tree7efed1e1c9131fbb135843d3e9e9844c2d06e5ba /src/Fl_Preferences.cxx
parent3289c8b947a558afb3971c0fc9dda05f2be580c6 (diff)
Remove duplicated code that was commented out, fix includes
... and prevent confusing doxygen
Diffstat (limited to 'src/Fl_Preferences.cxx')
-rw-r--r--src/Fl_Preferences.cxx25
1 files changed, 5 insertions, 20 deletions
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 <FL/Fl_Preferences.H>
#include <FL/Fl_Plugin.H>
-#include <FL/Fl_String.H>
#include <FL/filename.H>
+#include <FL/fl_utf8.h>
+#include <FL/fl_string_functions.h>
+#include "flstring.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
-#include <FL/fl_utf8.h>
-#include <FL/fl_string_functions.h>
-#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.