Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Unified Diff: webrtc/base/filerotatingstream.h

Issue 2935933007: Delete class DirectoryIterator and FileRotatingStream read support. (Closed)
Patch Set: Drop an RTC_NOTREACHED. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/base/filerotatingstream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/filerotatingstream.h
diff --git a/webrtc/base/filerotatingstream.h b/webrtc/base/filerotatingstream.h
index a3e808cda52670f7e9e3b67294bab9b9b6838318..97520fbbfe59e1b2ecc406a523d229f20e3997d4 100644
--- a/webrtc/base/filerotatingstream.h
+++ b/webrtc/base/filerotatingstream.h
@@ -82,14 +82,6 @@ class FileRotatingStream : public StreamInterface {
virtual void OnRotation() {}
private:
- enum Mode { kRead, kWrite };
-
- FileRotatingStream(const std::string& dir_path,
- const std::string& file_prefix,
- size_t max_file_size,
- size_t num_files,
- Mode mode);
-
bool OpenCurrentFile();
void CloseCurrentFile();
@@ -108,7 +100,6 @@ class FileRotatingStream : public StreamInterface {
const std::string dir_path_;
const std::string file_prefix_;
- const Mode mode_;
// FileStream is used to write to the current file.
std::unique_ptr<FileStream> file_stream_;
@@ -143,9 +134,6 @@ class FileRotatingStream : public StreamInterface {
// Open() must be called before using this stream.
class CallSessionFileRotatingStream : public FileRotatingStream {
public:
- // Use this constructor for reading a directory previously written to with
- // this stream.
- explicit CallSessionFileRotatingStream(const std::string& dir_path);
// Use this constructor for writing to a directory. Files in the directory
// matching what's used by the stream will be deleted. |max_total_log_size|
// must be at least 4.
« no previous file with comments | « no previous file | webrtc/base/filerotatingstream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698