Delete deprecated static method FileStream::GetSize.
Unused since cl https://codereview.webrtc.org/2694753002 Bug: webrtc:6424 Change-Id: Id22ecd5c004a0b4af3e673da519cbd537f99cd8b Reviewed-on: https://chromium-review.googlesource.com/626116 Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#19482}
This commit is contained in:
parent
adf4cec3c7
commit
eaea27799d
@ -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_));
|
||||
|
||||
@ -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();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user