Clean up A* sector cache leftovers
The sector cache was disabled in v4.2.2, and dropped in commit
8f40f5ad
, v4.2.20. A bit of cache statistics code was left behind.
Remove it.
This commit is contained in:
parent
e30dc41717
commit
c2628d43b7
1 changed files with 0 additions and 7 deletions
|
@ -51,8 +51,6 @@
|
|||
#define BP_NEIGHBORS 6 /* max number of neighbors */
|
||||
|
||||
struct bestp {
|
||||
int sctcache_hits;
|
||||
int sctcache_misses;
|
||||
int bp_mobtype;
|
||||
struct as_data *adp;
|
||||
};
|
||||
|
@ -123,11 +121,6 @@ best_path(struct sctstr *from, struct sctstr *to, char *path, int mob_type)
|
|||
#ifdef AS_STATS
|
||||
as_stats(adp, stderr);
|
||||
#endif /* AS_STATS */
|
||||
#ifdef BP_STATS
|
||||
fprintf(stderr, "best path %s\n", path);
|
||||
fprintf(stderr, "cache hits/misses: %d/%d\n",
|
||||
bp->sctcache_hits, bp->sctcache_misses);
|
||||
#endif /* BP_STATS */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue