remove unused test helper function, #6564

This commit is contained in:
Matt Bhagat-Conway 2023-03-10 11:53:09 -05:00
parent 899ba4b6f3
commit c39d90bd60
No known key found for this signature in database
GPG Key ID: EB64FF36E7DA441A

View File

@ -7,23 +7,6 @@
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>
#include <thread> #include <thread>
bool file_contains_string(std::string filename, std::string test)
{
std::ifstream inp(filename);
if (inp.is_open())
{
std::string contents;
inp >> contents;
return (boost::algorithm::contains(contents, test));
}
else
{
return false; // just fail the boost assert (shouldn't happen)
}
}
// utility class to redirect stderr so we can test it // utility class to redirect stderr so we can test it
// inspired by https://stackoverflow.com/questions/5405016 // inspired by https://stackoverflow.com/questions/5405016
class redirect_stderr class redirect_stderr