removing dead code

This commit is contained in:
rusefi 2017-12-12 18:04:54 -05:00
parent 624e95e6d0
commit d41e2fecb7
3 changed files with 2 additions and 7 deletions

View File

@ -116,7 +116,6 @@ static trigger_value_e eventType[6] = { TV_FALL, TV_RISE, TV_FALL, TV_RISE, TV_F
if (cycleCallback != NULL) { \
cycleCallback(this); \
} \
memcpy(prevTotalTime, currentCycle.totalTimeNt, sizeof(prevTotalTime)); \
startOfCycleNt = nowNt; \
resetCurrentCycleState(); \
intTotalEventCounter(); \

View File

@ -75,11 +75,7 @@ public:
efitime_t toothed_previous_time;
current_cycle_state_s currentCycle;
/**
* Total time result for previous trigger cycle
* See totalTimeNt
*/
uint32_t prevTotalTime[PWM_PHASE_MAX_WAVE_PER_PWM];
int expectedTotalTime[PWM_PHASE_MAX_WAVE_PER_PWM];
/**

View File

@ -188,7 +188,7 @@ void TriggerState::reset() {
resetRunningCounters();
resetCurrentCycleState();
memset(expectedTotalTime, 0, sizeof(expectedTotalTime));
memset(prevTotalTime, 0, sizeof(prevTotalTime));
totalEventCountBase = 0;
isFirstEvent = true;
}