Removed some dead code.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14359 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-05-09 11:48:57 +00:00
parent 5349d394b9
commit 4342e83fa8
1 changed files with 0 additions and 34 deletions

View File

@ -61,39 +61,6 @@ static inline bool is_timer(ch_delta_list_t *dlhp, ch_delta_list_t *dlp) {
return (bool)(dlp != dlhp); return (bool)(dlp != dlhp);
} }
#if 0
/**
* @brief Delta list compression.
*
* @param[in] vtlp pointer to the delta list to be compressed
* @param[in] deltanow interval to be compacted starting from "lasttime"
*
* @notapi
*/
static void vt_list_compress(virtual_timers_list_t *vtlp,
sysinterval_t deltanow) {
ch_delta_list_t *dlp = vtlp->dlist.next;
vtlp->lasttime = chTimeAddX(vtlp->lasttime, deltanow);
/* The loop is bounded because the delta list header has the delta field
set to (sysinterval_t)-1 which is larger than all deltas.*/
while (dlp->delta < deltanow) {
deltanow -= dlp->delta;
dlp->delta = (sysinterval_t)0;
dlp = dlp->next;
}
/* Adjusting next timer in the list, if any.*/
if (is_timer(&vtlp->dlist, dlp)) {
chDbgAssert(deltanow <= dlp->delta, "invalid delta");
dlp->delta -= deltanow;
}
}
#endif
#endif #endif
/** /**
@ -146,7 +113,6 @@ static void vt_enqueue(virtual_timers_list_t *vtlp,
delta is shortened to make it fit the numeric range, the timer delta is shortened to make it fit the numeric range, the timer
will be triggered "deltanow" cycles earlier.*/ will be triggered "deltanow" cycles earlier.*/
if (delta < deltanow) { if (delta < deltanow) {
// vt_list_compress(vtlp, deltanow);
delta = delay; delta = delay;
} }