Remove unused filesize_ from class InputBuffer

This also simplifies the constructors.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2019-07-18 10:48:27 +02:00 committed by zdenop
parent e34acfeb46
commit 47c8710ac2
2 changed files with 0 additions and 7 deletions

View File

@ -133,16 +133,10 @@ bool File::DeleteMatchingFiles(const char* pattern) {
///////////////////////////////////////////////////////////////////////////////
InputBuffer::InputBuffer(FILE* stream)
: stream_(stream) {
fseek(stream_, 0, SEEK_END);
filesize_ = ftell(stream_);
fseek(stream_, 0, SEEK_SET);
}
InputBuffer::InputBuffer(FILE* stream, size_t)
: stream_(stream) {
fseek(stream_, 0, SEEK_END);
filesize_ = ftell(stream_);
fseek(stream_, 0, SEEK_SET);
}
InputBuffer::~InputBuffer() {

View File

@ -71,7 +71,6 @@ class InputBuffer {
private:
FILE* stream_;
int filesize_;
};
// A class to manipulate Files for writing.