filelister.cpp: removed unused `NAME_MAX` related code (#5609)

The code which was using this was removed in
8b309a8829.
This commit is contained in:
Oliver Stöneberg 2023-11-02 10:04:53 +01:00 committed by GitHub
parent 57bec6cbc8
commit 8d5fa19caa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions

View File

@ -24,8 +24,6 @@
#include <cstddef>
#include <cstring>
// fix NAME_MAX not found on macOS GCC8.1
#include <climits>
#include <memory>
#ifdef _WIN32
@ -157,13 +155,6 @@ std::string FileLister::addFiles(std::map<std::string, std::size_t> &files, cons
#include <sys/stat.h>
#include <cerrno>
#ifndef NAME_MAX
#ifdef MAXNAMLEN
#define NAME_MAX MAXNAMLEN
#endif
#endif
static std::string addFiles2(std::map<std::string, std::size_t> &files,
const std::string &path,
const std::set<std::string> &extra,