Skip to content

Commit

Permalink
fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jun 15, 2023
1 parent f3e39ac commit de4f71c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/common/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,7 @@ class PrivateMmapConstStream : public MemoryFixSizeBuffer {
* @param length See the `length` parameter of `mmap` for details.
*/
explicit PrivateMmapConstStream(std::string path, std::size_t offset, std::size_t length);
std::size_t Read(void*, std::size_t) override {
LOG(FATAL) << "Read-only stream.";
return 0;
}
void Write(void const*, std::size_t) override { LOG(FATAL) << "Read-only stream."; }

~PrivateMmapConstStream() override;
};
Expand Down

0 comments on commit de4f71c

Please sign in to comment.