FileSystem: Remove useless code

This commit is contained in:
Jonas Kulla 2013-12-20 07:38:29 +01:00
parent 7e943e2803
commit 99cbb4d594
1 changed files with 0 additions and 41 deletions

View File

@ -113,47 +113,6 @@ advanceMagic(uint32_t &magic)
return old; return old;
} }
struct MagicState
{
uint32_t magic;
uint64_t offset;
MagicState(uint64_t offset = 0)
: offset(offset)
{
magic = RGSS_MAGIC;
for (uint i = 0; i < (offset/4); ++i)
advanceBlock();
}
uint8_t advancePath()
{
uint8_t ret = magic & 0xFF;
offset++;
advanceBlock();
return ret;
}
uint8_t advanceData()
{
uint8_t ret = magic & 0xFF;
if (offset++ % 4 == 0)
advanceBlock();
return ret;
}
private:
void advanceBlock()
{
magic = magic * 7 + 3;
}
};
static PHYSFS_sint64 static PHYSFS_sint64
RGSS_ioRead(PHYSFS_Io *self, void *buffer, PHYSFS_uint64 len) RGSS_ioRead(PHYSFS_Io *self, void *buffer, PHYSFS_uint64 len)
{ {