]> git.pond.sub.org Git - empserver/commitdiff
Clean up A* sector cache leftovers
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 18 Feb 2011 19:08:26 +0000 (20:08 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 12 Apr 2011 19:40:07 +0000 (21:40 +0200)
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

index 6313a6174245f5010bcf0706de115b41cedef169..cbd5f0a6f04b9d7d86d0c8acf4f681ede07a241d 100644 (file)
@@ -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;
 }