Skip to content

Commit

Permalink
fix: remove unused test code (#1014)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiud authored Jan 1, 2024
1 parent d29d02e commit ac8f8da
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
5 changes: 0 additions & 5 deletions src/glog/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 0 additions & 8 deletions src/logging.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ac8f8da

Please sign in to comment.