diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 40ee70e33..b8d8b2de9 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -75,32 +75,6 @@ const char * CppCheck::version() return "1.44"; } - -static void AddFilesToList(const std::string& FileList, std::vector& PathNames) -{ - // to keep things initially simple, if the file can't be opened, just be - // silent and move on - // ideas : we could also require this should be an xml file, with the filenames - // specified in an xml structure - // we could elaborate this then, to also include the I-paths, ... - // basically for everything that makes the command line very long - // xml is a bonus then, since we can easily extend it - // we need a good parser then -> suggestion : TinyXml - // drawback : creates a dependency - std::ifstream Files(FileList.c_str()); - if (Files) - { - std::string FileName; - while (std::getline(Files, FileName)) // next line - { - if (!FileName.empty()) - { - PathNames.push_back(FileName); - } - } - } -} - unsigned int CppCheck::check() { exitcode = 0;