--- a/src/depot.h Fri Nov 23 16:59:30 2007 +0000
+++ b/src/depot.h Wed Jan 09 18:11:12 2008 +0000
@@ -5,10 +5,8 @@
#ifndef DEPOT_H
#define DEPOT_H
-#include "direction.h"
+#include "direction_type.h"
#include "oldpool.h"
-#include "tile.h"
-#include "variables.h"
#include "road_map.h"
#include "rail_map.h"
#include "water_map.h"
@@ -37,23 +35,6 @@
#define FOR_ALL_DEPOTS_FROM(d, start) for (d = GetDepot(start); d != NULL; d = (d->index + 1U < GetDepotPoolSize()) ? GetDepot(d->index + 1U) : NULL) if (d->IsValid())
#define FOR_ALL_DEPOTS(d) FOR_ALL_DEPOTS_FROM(d, 0)
-#define MIN_SERVINT_PERCENT 5
-#define MAX_SERVINT_PERCENT 90
-#define MIN_SERVINT_DAYS 30
-#define MAX_SERVINT_DAYS 800
-
-/**
- * Get the service interval domain.
- * Get the new proposed service interval for the vehicle is indeed, clamped
- * within the given bounds. @see MIN_SERVINT_PERCENT ,etc.
- * @param index proposed service interval
- * @return service interval
- */
-static inline Date GetServiceIntervalClamped(uint index)
-{
- return (_patches.servint_ispercent) ? Clamp(index, MIN_SERVINT_PERCENT, MAX_SERVINT_PERCENT) : Clamp(index, MIN_SERVINT_DAYS, MAX_SERVINT_DAYS);
-}
-
/**
* Check if a tile is a depot of the given type.
*/