diff options
author | rubidium <rubidium@openttd.org> | 2010-01-02 15:52:41 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-01-02 15:52:41 +0000 |
commit | 58be174df245ebd7a29b5113941e2f5e1023254e (patch) | |
tree | 2d0a8f16ee6beda2f060eaa2c9d793148926b42b /src/saveload | |
parent | fe67e85700988303c6e0148fa6212bf3904c8fca (diff) | |
download | openttd-58be174df245ebd7a29b5113941e2f5e1023254e.tar.xz |
(svn r18688) -Cleanup: remove some unused code/constants
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/saveload.cpp | 17 | ||||
-rw-r--r-- | src/saveload/saveload.h | 7 |
2 files changed, 6 insertions, 18 deletions
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp index 04598e881..652a540fc 100644 --- a/src/saveload/saveload.cpp +++ b/src/saveload/saveload.cpp @@ -1189,17 +1189,12 @@ static void SlSaveChunks() { const ChunkHandler *ch; const ChunkHandler * const *chsc; - uint p; - - for (p = 0; p != CH_NUM_PRI_LEVELS; p++) { - for (chsc = _chunk_handlers; (ch = *chsc++) != NULL;) { - while (true) { - if (((ch->flags >> CH_PRI_SHL) & (CH_NUM_PRI_LEVELS - 1)) == p) - SlSaveChunk(ch); - if (ch->flags & CH_LAST) - break; - ch++; - } + + for (chsc = _chunk_handlers; (ch = *chsc++) != NULL;) { + while (true) { + SlSaveChunk(ch); + if (ch->flags & CH_LAST) break; + ch++; } } diff --git a/src/saveload/saveload.h b/src/saveload/saveload.h index 5d33c099f..91ccf3404 100644 --- a/src/saveload/saveload.h +++ b/src/saveload/saveload.h @@ -92,13 +92,6 @@ enum { CH_TYPE_MASK = 3, CH_LAST = 8, CH_AUTO_LENGTH = 16, - - CH_PRI_0 = 0 << 4, - CH_PRI_1 = 1 << 4, - CH_PRI_2 = 2 << 4, - CH_PRI_3 = 3 << 4, - CH_PRI_SHL = 4, - CH_NUM_PRI_LEVELS = 4, }; /** VarTypes is the general bitmasked magic type that tells us |