mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r18688) -Cleanup: remove some unused code/constants
This commit is contained in:
parent
fe67e85700
commit
58be174df2
@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user