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
This commit is contained in:
Greg Ercolano 2014-12-19 03:30:27 +00:00
parent f2cba934cb
commit 2ca381c281

View File

@ -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 )