diff --git a/src/OSspecific/POSIX/POSIX.C b/src/OSspecific/POSIX/POSIX.C index 7424e025f2..cf893cecd1 100644 --- a/src/OSspecific/POSIX/POSIX.C +++ b/src/OSspecific/POSIX/POSIX.C @@ -666,10 +666,6 @@ Foam::fileNameList Foam::readDir const bool followLink ) { - // Initial filename list size - // also used as increment if initial size found to be insufficient - static const int maxNnames = 100; - if (POSIX::debug) { Pout<< FUNCTION_NAME << " : reading directory " << directory << endl; @@ -679,8 +675,8 @@ Foam::fileNameList Foam::readDir } } - // Setup empty string list MAXTVALUES long - HashSet dirEntries(maxNnames); + // Create empty set of file names + HashSet dirEntries; // Pointers to the directory entries DIR *source;