From 5436618c05468268a36b4bc01507aa629e133db5 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 3 Nov 2025 12:29:03 +0100 Subject: [PATCH] sourcestats: drop disabled code in SST_GetSelectionData() --- sourcestats.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/sourcestats.c b/sourcestats.c index fcc501a2..80105408 100644 --- a/sourcestats.c +++ b/sourcestats.c @@ -675,20 +675,6 @@ SST_GetSelectionData(SST_Stats inst, struct timespec *now, *offset_lo_limit = offset - *root_distance; *offset_hi_limit = offset + *root_distance; -#if 0 - double average_offset, elapsed; - int average_ok; - /* average_ok ignored for now */ - elapsed = UTI_DiffTimespecsToDouble(now, &inst->offset_time); - average_offset = inst->estimated_offset + inst->estimated_frequency * elapsed; - if (fabs(average_offset - offset) <= - inst->peer_dispersions[j] + 0.5 * inst->peer_delays[i]) { - average_ok = 1; - } else { - average_ok = 0; - } -#endif - i = get_runsbuf_index(inst, 0); *first_sample_ago = UTI_DiffTimespecsToDouble(now, &inst->sample_times[i]); i = get_runsbuf_index(inst, inst->n_samples - 1); -- 2.47.3