mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-27 08:29:11 +00:00
(svn r18374) -Cleanup: remove some unused code
This commit is contained in:
@@ -29,8 +29,8 @@
|
|||||||
#include "../../core/alloc_func.hpp"
|
#include "../../core/alloc_func.hpp"
|
||||||
#include "aystar.h"
|
#include "aystar.h"
|
||||||
|
|
||||||
int _aystar_stats_open_size;
|
static int _aystar_stats_open_size;
|
||||||
int _aystar_stats_closed_size;
|
static int _aystar_stats_closed_size;
|
||||||
|
|
||||||
/* This looks in the Hash if a node exists in ClosedList
|
/* This looks in the Hash if a node exists in ClosedList
|
||||||
* If so, it returns the PathNode, else NULL */
|
* If so, it returns the PathNode, else NULL */
|
||||||
|
@@ -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 */
|
/** Use this function to notify YAPF that track layout (or signal configuration) has change */
|
||||||
void YapfNotifyTrackLayoutChange(TileIndex tile, Track track);
|
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 */
|
/** Base tile length units */
|
||||||
enum {
|
enum {
|
||||||
YAPF_TILE_LENGTH = 100,
|
YAPF_TILE_LENGTH = 100,
|
||||||
|
@@ -185,21 +185,3 @@ Track YapfShipChooseTrack(const Ship *v, TileIndex tile, DiagDirection enterdir,
|
|||||||
Trackdir td_ret = pfnChooseShipTrack(v, tile, enterdir, tracks);
|
Trackdir td_ret = pfnChooseShipTrack(v, tile, enterdir, tracks);
|
||||||
return (td_ret != INVALID_TRACKDIR) ? TrackdirToTrack(td_ret) : INVALID_TRACK;
|
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;
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user