removing dead code

This commit is contained in:
rusefi 2017-12-12 17:51:44 -05:00
parent be25638397
commit 624e95e6d0
3 changed files with 1 additions and 7 deletions

View File

@ -80,11 +80,7 @@ bool TriggerState::isValidIndex(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
return currentCycle.current_index < TRIGGER_SHAPE(size);
}
float TriggerState::getTriggerDutyCycle(int index) {
float time = prevTotalTime[index];
return 100 * time / prevCycleDuration;
}
static trigger_wheel_e eventIndex[6] = { T_PRIMARY, T_PRIMARY, T_SECONDARY, T_SECONDARY, T_CHANNEL_3, T_CHANNEL_3 };
static trigger_value_e eventType[6] = { TV_FALL, TV_RISE, TV_FALL, TV_RISE, TV_FALL, TV_RISE };
@ -121,7 +117,6 @@ static trigger_value_e eventType[6] = { TV_FALL, TV_RISE, TV_FALL, TV_RISE, TV_F
cycleCallback(this); \
} \
memcpy(prevTotalTime, currentCycle.totalTimeNt, sizeof(prevTotalTime)); \
prevCycleDuration = nowNt - startOfCycleNt; \
startOfCycleNt = nowNt; \
resetCurrentCycleState(); \
intTotalEventCounter(); \

View File

@ -109,7 +109,7 @@ private:
efitime_t totalEventCountBase;
uint32_t totalRevolutionCounter;
bool isFirstEvent;
efitime_t prevCycleDuration;
};

View File

@ -183,7 +183,6 @@ void TriggerState::reset() {
currentDuration = 0;
curSignal = SHAFT_PRIMARY_FALLING;
prevSignal = SHAFT_PRIMARY_FALLING;
prevCycleDuration = 0;
startOfCycleNt = 0;
resetRunningCounters();