summaryrefslogtreecommitdiff
path: root/src/train.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/train.h')
-rw-r--r--src/train.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/train.h b/src/train.h
index 30226e605..71724c2c3 100644
--- a/src/train.h
+++ b/src/train.h
@@ -24,10 +24,6 @@ struct Train;
enum VehicleRailFlags {
VRF_REVERSING = 0,
- /* used to calculate if train is going up or down */
- VRF_GOINGUP = 1,
- VRF_GOINGDOWN = 2,
-
/* used to store if a wagon is powered or not */
VRF_POWEREDWAGON = 3,
@@ -453,25 +449,6 @@ protected: // These functions should not be called outside acceleration code.
}
/**
- * Calculates the total slope resistance for this vehicle.
- * @return Slope resistance.
- */
- FORCEINLINE int32 GetSlopeResistance() const
- {
- int32 incl = 0;
-
- for (const Train *u = this; u != NULL; u = u->Next()) {
- if (HasBit(u->flags, VRF_GOINGUP)) {
- incl += u->acc_cache.cached_slope_resistance;
- } else if (HasBit(u->flags, VRF_GOINGDOWN)) {
- incl -= u->acc_cache.cached_slope_resistance;
- }
- }
-
- return incl;
- }
-
- /**
* Allows to know the acceleration type of a vehicle.
* @return Acceleration type of the vehicle.
*/