mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-19 23:19:07 +08:00
Remove unused filesize_ from class InputBuffer
This also simplifies the constructors. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
e34acfeb46
commit
47c8710ac2
@ -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() {
|
||||
|
@ -71,7 +71,6 @@ class InputBuffer {
|
||||
|
||||
private:
|
||||
FILE* stream_;
|
||||
int filesize_;
|
||||
};
|
||||
|
||||
// A class to manipulate Files for writing.
|
||||
|
Loading…
Reference in New Issue
Block a user