Skip to content

Commit

Permalink
[Ref] mpt/io_read/filereader.hpp: Enable GetLength() and BytesLeft() …
Browse files Browse the repository at this point in the history
…FileReader free functions. These should never have been made completely unavailable.

git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@20326 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Mar 15, 2024
1 parent f40c927 commit dfb431e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/mpt/io_read/filereader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,21 +99,17 @@ bool HasFastGetLength(const TFileCursor & f) {
return f.HasFastGetLength();
}

#if 0
// Returns size of the mapped file in bytes.
template <typename TFileCursor>
MPT_FILECURSOR_DEPRECATED typename TFileCursor::pos_type GetLength(const TFileCursor & f) {
return f.GetLength();
}
#endif

#if 0
// Return byte count between cursor position and end of file, i.e. how many bytes can still be read.
template <typename TFileCursor>
MPT_FILECURSOR_DEPRECATED typename TFileCursor::pos_type BytesLeft(const TFileCursor & f) {
return f.BytesLeft();
}
#endif

template <typename TFileCursor>
bool EndOfFile(const TFileCursor & f) {
Expand Down

0 comments on commit dfb431e

Please sign in to comment.