commit 1856771104e7eedf6c62237a2a535683e9f865cb parent 7f305ca7677795f827f5a7ee59f7ca9b97d4ed4c Author: Vincent Forest <vincent.forest@meso-star.com> Date: Tue, 6 Sep 2016 12:17:22 +0200 Remove the useless s3d_invalidate_hit function Diffstat:
| M | src/ssol_solver.c | | | 8 | +------- |
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/ssol_solver.c b/src/ssol_solver.c @@ -219,19 +219,13 @@ next_segment(struct realisation* rs) return RES_OK; } -/* TODO: move to Star3D */ -static INLINE void s3d_invalidate_hit(struct s3d_hit* hit) { - ASSERT(hit); - hit->distance = FLT_MAX; -} - void reset_segment(struct segment* seg) { ASSERT(seg); seg->range[0] = 0; seg->range[1] = FLT_MAX; - s3d_invalidate_hit(&seg->hit); + seg->hit = S3D_HIT_NULL; } static void