diff options
author | rubidium <rubidium@openttd.org> | 2009-12-02 10:47:18 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-12-02 10:47:18 +0000 |
commit | f67c265c6f5c88d5f9d18a831da5b65329169712 (patch) | |
tree | 72a7e2a78c9c3d945fba4b4846dc834dd6e9e456 /src/pathfinder/yapf | |
parent | c10e95314156cfaf856a3075118b1bd2c698d139 (diff) | |
download | openttd-f67c265c6f5c88d5f9d18a831da5b65329169712.tar.xz |
(svn r18374) -Cleanup: remove some unused code
Diffstat (limited to 'src/pathfinder/yapf')
-rw-r--r-- | src/pathfinder/yapf/yapf.h | 9 | ||||
-rw-r--r-- | src/pathfinder/yapf/yapf_ship.cpp | 18 |
2 files changed, 0 insertions, 27 deletions
diff --git a/src/pathfinder/yapf/yapf.h b/src/pathfinder/yapf/yapf.h index b020965d1..337cb02b5 100644 --- a/src/pathfinder/yapf/yapf.h +++ b/src/pathfinder/yapf/yapf.h @@ -105,15 +105,6 @@ bool YapfTrainFindNearestSafeTile(const Train *v, TileIndex tile, Trackdir td, b /** Use this function to notify YAPF that track layout (or signal configuration) has change */ void YapfNotifyTrackLayoutChange(TileIndex tile, Track track); -/** performance measurement helpers */ -void *NpfBeginInterval(); -int NpfEndInterval(void *perf); - - -extern int _aystar_stats_open_size; -extern int _aystar_stats_closed_size; - - /** Base tile length units */ enum { YAPF_TILE_LENGTH = 100, diff --git a/src/pathfinder/yapf/yapf_ship.cpp b/src/pathfinder/yapf/yapf_ship.cpp index 3647efa2d..f30004106 100644 --- a/src/pathfinder/yapf/yapf_ship.cpp +++ b/src/pathfinder/yapf/yapf_ship.cpp @@ -185,21 +185,3 @@ Track YapfShipChooseTrack(const Ship *v, TileIndex tile, DiagDirection enterdir, Trackdir td_ret = pfnChooseShipTrack(v, tile, enterdir, tracks); return (td_ret != INVALID_TRACKDIR) ? TrackdirToTrack(td_ret) : INVALID_TRACK; } - -/** performance measurement helper */ -void *NpfBeginInterval() -{ - CPerformanceTimer& perf = *new CPerformanceTimer; - perf.Start(); - return &perf; -} - -/** performance measurement helper */ -int NpfEndInterval(void *vperf) -{ - CPerformanceTimer& perf = *(CPerformanceTimer*)vperf; - perf.Stop(); - int t = perf.Get(1000000); - delete &perf; - return t; -} |