Remove old pre-INI config migration code
- As if any of this matters now. It's not the 90s anymore.
This commit is contained in:
parent
c36222d2ef
commit
b300cfaf62
4 changed files with 16 additions and 78 deletions
|
|
@ -66,15 +66,13 @@ FConfigFile::FConfigFile ()
|
|||
//
|
||||
//====================================================================
|
||||
|
||||
FConfigFile::FConfigFile (const char *pathname,
|
||||
void (*nosechandler)(const char *pathname, FConfigFile *config, void *userdata),
|
||||
void *userdata)
|
||||
FConfigFile::FConfigFile (const char *pathname)
|
||||
{
|
||||
Sections = CurrentSection = NULL;
|
||||
LastSectionPtr = &Sections;
|
||||
CurrentEntry = NULL;
|
||||
ChangePathName (pathname);
|
||||
LoadConfigFile (nosechandler, userdata);
|
||||
LoadConfigFile ();
|
||||
OkayToWrite = true;
|
||||
FileExisted = true;
|
||||
}
|
||||
|
|
@ -591,7 +589,7 @@ FConfigFile::FConfigEntry *FConfigFile::NewConfigEntry (
|
|||
//
|
||||
//====================================================================
|
||||
|
||||
void FConfigFile::LoadConfigFile (void (*nosechandler)(const char *pathname, FConfigFile *config, void *userdata), void *userdata)
|
||||
void FConfigFile::LoadConfigFile ()
|
||||
{
|
||||
FILE *file = fopen (PathName, "r");
|
||||
bool succ;
|
||||
|
|
@ -605,14 +603,6 @@ void FConfigFile::LoadConfigFile (void (*nosechandler)(const char *pathname, FCo
|
|||
succ = ReadConfig (file);
|
||||
fclose (file);
|
||||
FileExisted = succ;
|
||||
|
||||
if (!succ)
|
||||
{ // First valid line did not define a section
|
||||
if (nosechandler != NULL)
|
||||
{
|
||||
nosechandler (PathName, this, userdata);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//====================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue