Remove take_plane_off_ship(), take_plane_off_land()

Commit 3e370da5 left them pretty trivial.  Inline, simplify, remove.
This commit is contained in:
Markus Armbruster 2008-09-14 10:02:17 -04:00
parent 4478df7da6
commit b024d57b38
3 changed files with 2 additions and 24 deletions

View file

@ -860,16 +860,6 @@ put_plane_on_ship(struct plnstr *plane, struct shpstr *ship)
return 1;
}
void
take_plane_off_ship(struct plnstr *plane, struct shpstr *ship)
{
if (CANT_HAPPEN(plane->pln_ship != ship->shp_uid))
return;
plane->pln_ship = -1;
putplane(plane->pln_uid, plane);
}
/*
* Fit a plane of PP's type on land unit LP.
* Updating the plane accordingly is the caller's job.
@ -900,16 +890,6 @@ put_plane_on_land(struct plnstr *plane, struct lndstr *land)
return 1;
}
void
take_plane_off_land(struct plnstr *plane, struct lndstr *land)
{
if (CANT_HAPPEN(plane->pln_land != land->lnd_uid))
return;
plane->pln_land = -1;
putplane(plane->pln_uid, plane);
}
void
plane_sweep(struct emp_qelem *plane_list, coord x, coord y)
{