From 54237b0e98894008168285109634479dddb1bc16 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 17 May 2020 22:24:59 +0100 Subject: Codechange: Move SlSkipBytes to saveload.h --- src/saveload/saveload.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/saveload/saveload.cpp') diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp index 4da89aa84..8cf6a3923 100644 --- a/src/saveload/saveload.cpp +++ b/src/saveload/saveload.cpp @@ -467,16 +467,6 @@ static inline void SlWriteUint64(uint64 x) SlWriteUint32((uint32)x); } -/** - * Read in bytes from the file/data structure but don't do - * anything with them, discarding them in effect - * @param length The amount of bytes that is being treated this way - */ -static inline void SlSkipBytes(size_t length) -{ - for (; length != 0; length--) SlReadByte(); -} - /** * Read in the header descriptor of an object or an array. * If the highest bit is set (7), then the index is bigger than 127 -- cgit v1.2.3-54-g00ecf