From 7c28b232a46ebede9d6f09bc6eafb49bacfa99ea Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sat, 16 Mar 2024 12:29:39 +0100 Subject: [PATCH] minor cleanup --- src/solanaceae/message3/file_r_file.hpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/solanaceae/message3/file_r_file.hpp b/src/solanaceae/message3/file_r_file.hpp index c7c4483..eb8b97a 100644 --- a/src/solanaceae/message3/file_r_file.hpp +++ b/src/solanaceae/message3/file_r_file.hpp @@ -37,13 +37,6 @@ struct FileRFile : public FileI { // TODO: error check _file.seekg(pos); -#if 0 - std::vector chunk; - int read_char; - for (size_t i = 0; i < size && (_file_size == 0 || i+pos < _file_size) && (read_char = _file.get()) != std::ifstream::traits_type::eof(); i++) { - chunk.push_back(read_char); - } -#else std::vector chunk(size); const auto nread = _file.read(reinterpret_cast(chunk.data()), chunk.size()).gcount(); if (nread != std::numeric_limits::max()) { @@ -51,7 +44,6 @@ struct FileRFile : public FileI { } else { chunk.clear(); } -#endif _bytes_read += chunk.size();