Author: manx
Date: Fri Mar 15 08:39:42 2024
New Revision: 20327
URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=20327
Log:
Merged revision(s) 20326 from trunk/OpenMPT:
[Ref] mpt/io_read/filereader.hpp: Enable GetLength() and BytesLeft() FileReader free functions. These should never have been made completely unavailable.
........
Modified:
branches/OpenMPT-1.31/ (props changed)
branches/OpenMPT-1.31/src/mpt/io_read/filereader.hpp
Modified: branches/OpenMPT-1.31/src/mpt/io_read/filereader.hpp
==============================================================================
--- branches/OpenMPT-1.31/src/mpt/io_read/filereader.hpp Fri Mar 15 08:39:13 2024 (r20326)
+++ branches/OpenMPT-1.31/src/mpt/io_read/filereader.hpp Fri Mar 15 08:39:42 2024 (r20327)
@@ -98,21 +98,17 @@
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) {
|