fix: remove unused test code (#1014)

This commit is contained in:
Sergiu Deitsch 2024-01-02 00:47:02 +01:00 committed by GitHub
parent d29d02e8af
commit ac8f8dae2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 13 deletions

View File

@ -1692,11 +1692,6 @@ GLOG_EXPORT bool SendEmail(const char* dest, const char* subject,
GLOG_EXPORT const std::vector<std::string>& GetLoggingDirectories();
// For tests only: Clear the internal [cached] list of logging directories to
// force a refresh the next time GetLoggingDirectories is called.
// Thread-hostile.
void TestOnly_ClearLoggingDirectoriesList();
// Returns a set of existing temporary directories, which will be a
// subset of the directories returned by GetLoggingDirectories().
// Thread-safe.

View File

@ -2401,14 +2401,6 @@ const vector<string>& GetLoggingDirectories() {
return *logging_directories_list;
}
void TestOnly_ClearLoggingDirectoriesList() {
fprintf(stderr,
"TestOnly_ClearLoggingDirectoriesList should only be "
"called from test code.\n");
delete logging_directories_list;
logging_directories_list = nullptr;
}
void GetExistingTempDirectories(vector<string>* list) {
GetTempDirectories(list);
auto i_dir = list->begin();