Skip to content

Commit

Permalink
More of same
Browse files Browse the repository at this point in the history
  • Loading branch information
perwin committed Jul 12, 2024
1 parent 0750ce9 commit 04b4373
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions core/config_file_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,11 +502,10 @@ int ReadConfigFile( const string& configFileName, const bool mode2D, vector<stri
vector<string> stringPieces;
vector<int> origLineNumbers;
int functionSectionStart;
int i, nInputLines;
int i;
int possibleBadLineNumber = -1;
int k = 0;
int result;
bool inOptionalParams = false;

inputFileStream.open(configFileName.c_str());
if( ! inputFileStream ) {
Expand All @@ -527,7 +526,6 @@ int ReadConfigFile( const string& configFileName, const bool mode2D, vector<stri
}
}
inputFileStream.close();
nInputLines = inputLines.size();

// Clear the input vectors before we start appending things to them
functionNameList.clear();
Expand Down Expand Up @@ -599,12 +597,11 @@ int ReadConfigFile( const string& configFileName, const bool mode2D, vector<stri
vector<string> inputLines;
vector<string> stringPieces;
vector<int> origLineNumbers;
int functionSectionStart, functionNumber, paramNumber;
int i, nInputLines;
int functionSectionStart;
int i;
int possibleBadLineNumber = -1;
int result;
int k = 0;
int pLimitFound;

inputFileStream.open(configFileName.c_str());
if( ! inputFileStream ) {
Expand All @@ -621,7 +618,6 @@ int ReadConfigFile( const string& configFileName, const bool mode2D, vector<stri
}
}
inputFileStream.close();
nInputLines = inputLines.size();

// OK, locate the start of the function set (first line beginning with "X0")
functionSectionStart = VetConfigFile(inputLines, origLineNumbers, mode2D, &possibleBadLineNumber);
Expand Down

0 comments on commit 04b4373

Please sign in to comment.