From c39d90bd605cc88a1d2c0c8fa810823bfb1b73a8 Mon Sep 17 00:00:00 2001 From: Matt Bhagat-Conway Date: Fri, 10 Mar 2023 11:53:09 -0500 Subject: [PATCH] remove unused test helper function, #6564 --- unit_tests/library/extract.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/unit_tests/library/extract.cpp b/unit_tests/library/extract.cpp index 6243cb841..342d672f7 100644 --- a/unit_tests/library/extract.cpp +++ b/unit_tests/library/extract.cpp @@ -7,23 +7,6 @@ #include #include -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 // inspired by https://stackoverflow.com/questions/5405016 class redirect_stderr