summaryrefslogtreecommitdiff
path: root/src/order_backup.h
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2019-12-17 01:35:29 +0100
committerNiels Martin Hansen <nielsm@indvikleren.dk>2019-12-21 20:13:03 +0100
commit9892d90b26db4dfe97ec7baeb89e43acb53a178e (patch)
treec4cbee86584e50e85c419aed6aa912fe1b6ebf37 /src/order_backup.h
parent41232f18c18c9ca444282a9e959b7dfd6c93eff5 (diff)
downloadopenttd-9892d90b26db4dfe97ec7baeb89e43acb53a178e.tar.xz
Codechange: Replace order related FOR_ALL with range-based for loops
Diffstat (limited to 'src/order_backup.h')
-rw-r--r--src/order_backup.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/order_backup.h b/src/order_backup.h
index 6df984277..5d1dcef50 100644
--- a/src/order_backup.h
+++ b/src/order_backup.h
@@ -64,17 +64,4 @@ public:
static void RemoveOrder(OrderType type, DestinationID destination, bool hangar);
};
-/**
- * Iterator over all order backups from a given ID.
- * @param var The variable to iterate with.
- * @param start The start of the iteration.
- */
-#define FOR_ALL_ORDER_BACKUPS_FROM(var, start) FOR_ALL_ITEMS_FROM(OrderBackup, order_backup_index, var, start)
-
-/**
- * Iterator over all order backups.
- * @param var The variable to iterate with.
- */
-#define FOR_ALL_ORDER_BACKUPS(var) FOR_ALL_ORDER_BACKUPS_FROM(var, 0)
-
#endif /* ORDER_BACKUP_H */