diff --git a/src/glog/logging.h b/src/glog/logging.h index b69fc506e..c4614769c 100644 --- a/src/glog/logging.h +++ b/src/glog/logging.h @@ -1692,11 +1692,6 @@ GLOG_EXPORT bool SendEmail(const char* dest, const char* subject, GLOG_EXPORT const std::vector& 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. diff --git a/src/logging.cc b/src/logging.cc index 4607402b2..b4c736163 100644 --- a/src/logging.cc +++ b/src/logging.cc @@ -2401,14 +2401,6 @@ const vector& 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* list) { GetTempDirectories(list); auto i_dir = list->begin();