From c2628d43b72d22ca4c363defc8055733e09fa708 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 18 Feb 2011 20:08:26 +0100 Subject: [PATCH] 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. --- src/lib/common/path.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/lib/common/path.c b/src/lib/common/path.c index 6313a617..cbd5f0a6 100644 --- a/src/lib/common/path.c +++ b/src/lib/common/path.c @@ -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; }