From 2ca381c281503c221b022d63f2cd1aa2e366fd52 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Fri, 19 Dec 2014 03:30:27 +0000 Subject: 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 --- src/Fl_Preferences.cxx | 34 ---------------------------------- 1 file changed, 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 ) -- cgit v1.2.3