From: David ‘Bombe’ Roden Date: Sat, 5 Jul 2008 17:22:00 +0000 (+0200) Subject: simplify X-Git-Tag: 0.1~35 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1d09585d4cd534462159bb3df84fdc63337d90ca;p=ecparse.git simplify --- diff --git a/FileReaderInput.cpp b/FileReaderInput.cpp index 5596f8f..0492233 100644 --- a/FileReaderInput.cpp +++ b/FileReaderInput.cpp @@ -13,10 +13,7 @@ FileReaderInput::~FileReaderInput() { } size_t FileReaderInput::read(void* buffer, size_t length) { - size_t readBytes; - - readBytes = fread(buffer, 1, length, file); - return readBytes; + return fread(buffer, 1, length, file); } bool FileReaderInput::isEOF() {