fix: remove unused test code (#1014)
This commit is contained in:
parent
d29d02e8af
commit
ac8f8dae2c
@ -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.
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user