src/autoreplace_cmd.cpp
changeset 9125 0081fd86cc15
parent 9124 eea8af2b73a8
child 9176 676d04b1e38a
--- a/src/autoreplace_cmd.cpp	Sat Feb 23 22:01:55 2008 +0000
+++ b/src/autoreplace_cmd.cpp	Sat Feb 23 22:23:06 2008 +0000
@@ -25,15 +25,6 @@
 
 #include "table/strings.h"
 
-bool Vehicle::NeedsAutorenewing(const Player *p) const
-{
-	assert(p == GetPlayer(this->owner));
-
-	if (!p->engine_renew) return false;
-	if (this->age - this->max_age < (p->engine_renew_months * 30)) return false;
-
-	return true;
-}
 
 /*
  * move the cargo from one engine to another if possible