simplify
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 5 Jul 2008 17:22:00 +0000 (19:22 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 5 Jul 2008 17:22:00 +0000 (19:22 +0200)
FileReaderInput.cpp

index 5596f8f..0492233 100644 (file)
@@ -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() {