Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove unused test code #1014

Merged
merged 1 commit into from
Jan 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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