Remove unused get_empobj_chr()

Unused since commit 5e77193c, v4.3.24.
This commit is contained in:
Markus Armbruster 2011-05-21 15:33:31 +02:00
parent 79f289c365
commit 766788480f
2 changed files with 0 additions and 20 deletions

View file

@ -99,7 +99,6 @@ struct empobj_chr;
#define get_empobjp(type, n) ((struct empobj *)ef_ptr((type), (n)))
extern char *obj_nameof(struct empobj *gp);
extern struct empobj_chr *get_empobj_chr(struct empobj *gp);
extern char *empobj_chr_name(struct empobj *gp);
extern int get_empobj_mob_max(int type);

View file

@ -56,25 +56,6 @@ obj_nameof(struct empobj *gp)
return "The Beast #666";
}
struct empobj_chr *
get_empobj_chr(struct empobj *gp)
{
switch (gp->ef_type) {
case EF_LAND:
return (struct empobj_chr *)&lchr[(int)gp->type];
case EF_SHIP:
return (struct empobj_chr *)&mchr[(int)gp->type];
case EF_PLANE:
return (struct empobj_chr *)&plchr[(int)gp->type];
case EF_NUKE:
return (struct empobj_chr *)&nchr[(int)gp->type];
case EF_SECTOR:
return (struct empobj_chr *)&dchr[(int)gp->type];
}
CANT_REACH();
return NULL;
}
char *
empobj_chr_name(struct empobj *gp)
{