Minor cleanups in testsupport/file_utils
Bug: webrtc:13579 Change-Id: Ic7915a3520a0f16d0e57cb5e9ffa290524f6bf39 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/256810 Reviewed-by: Niels Moller <nisse@webrtc.org> Commit-Queue: Ali Tofigh <alito@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36339}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
a8bc137835
commit
3cdd653d66
@ -85,11 +85,6 @@ bool FileExists(absl::string_view file_name) {
|
||||
return stat(std::string(file_name).c_str(), &file_info) == 0;
|
||||
}
|
||||
|
||||
bool FileExists(const std::string& file_name) {
|
||||
struct stat file_info = {0};
|
||||
return stat(file_name.c_str(), &file_info) == 0;
|
||||
}
|
||||
|
||||
bool DirExists(absl::string_view directory_name) {
|
||||
struct stat directory_info = {0};
|
||||
return stat(std::string(directory_name).c_str(), &directory_info) == 0 &&
|
||||
|
||||
Reference in New Issue
Block a user