diff --git a/webrtc/rtc_base/stream.cc b/webrtc/rtc_base/stream.cc index df2d66558b..32b9eac862 100644 --- a/webrtc/rtc_base/stream.cc +++ b/webrtc/rtc_base/stream.cc @@ -472,14 +472,6 @@ bool FileStream::ReserveSize(size_t size) { return true; } -bool FileStream::GetSize(const std::string& filename, size_t* size) { - struct stat file_stats; - if (stat(filename.c_str(), &file_stats) != 0) - return false; - *size = file_stats.st_size; - return true; -} - bool FileStream::Flush() { if (file_) { return (0 == fflush(file_)); diff --git a/webrtc/rtc_base/stream.h b/webrtc/rtc_base/stream.h index 601ef66a4d..8b7b036e0d 100644 --- a/webrtc/rtc_base/stream.h +++ b/webrtc/rtc_base/stream.h @@ -407,9 +407,6 @@ class FileStream : public StreamInterface { bool Unlock(); #endif - // Note: Deprecated in favor of Filesystem::GetFileSize(). - static bool GetSize(const std::string& filename, size_t* size); - protected: virtual void DoClose();