summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2014-12-19 03:30:27 +0000
committerGreg Ercolano <erco@seriss.com>2014-12-19 03:30:27 +0000
commit2ca381c281503c221b022d63f2cd1aa2e366fd52 (patch)
tree4cb5694ec7f34f21b75d83f8f2c2023422dddd71
parentf2cba934cb9c477fd6e7579266ac8e36a2df7720 (diff)
Unused functions makePath() and makePathForFile() removed. (STR#3169)
Albrecht adds in comment #3: "These have been replaced by fl_make_path() and fl_make_path_for_file() in src/fl_utf8.cxx." git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10491 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/Fl_Preferences.cxx34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/Fl_Preferences.cxx b/src/Fl_Preferences.cxx
index ad34ee2ed..6f4d0cece 100644
--- a/src/Fl_Preferences.cxx
+++ b/src/Fl_Preferences.cxx
@@ -955,40 +955,6 @@ Fl_Preferences::Name::~Name() {
int Fl_Preferences::Node::lastEntrySet = -1;
-// recursively create a path in the file system
-static char makePath( const char *path ) {
- if (access(path, 0)) {
- const char *s = strrchr( path, '/' );
- if ( !s ) return 0;
- size_t len = s-path;
- char *p = (char*)malloc( len+1 );
- memcpy( p, path, len );
- p[len] = 0;
- makePath( p );
- free( p );
-#if defined(WIN32) && !defined(__CYGWIN__)
- return ( mkdir( path ) == 0 );
-#else
- return ( mkdir( path, 0777 ) == 0 );
-#endif // WIN32 && !__CYGWIN__
- }
- return 1;
-}
-
-#if 0
-// strip the filename and create a path
-static void makePathForFile( const char *path ) {
- const char *s = strrchr( path, '/' );
- if ( !s ) return;
- int len = s-path;
- char *p = (char*)malloc( len+1 );
- memcpy( p, path, len );
- p[len] = 0;
- makePath( p );
- free( p );
-}
-#endif
-
// create the root node
// - construct the name of the file that will hold our preferences
Fl_Preferences::RootNode::RootNode( Fl_Preferences *prefs, Root root, const char *vendor, const char *application )