removing dead code
This commit is contained in:
parent
be25638397
commit
624e95e6d0
|
@ -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(); \
|
||||
|
|
|
@ -109,7 +109,7 @@ private:
|
|||
efitime_t totalEventCountBase;
|
||||
uint32_t totalRevolutionCounter;
|
||||
bool isFirstEvent;
|
||||
efitime_t prevCycleDuration;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -183,7 +183,6 @@ void TriggerState::reset() {
|
|||
currentDuration = 0;
|
||||
curSignal = SHAFT_PRIMARY_FALLING;
|
||||
prevSignal = SHAFT_PRIMARY_FALLING;
|
||||
prevCycleDuration = 0;
|
||||
startOfCycleNt = 0;
|
||||
|
||||
resetRunningCounters();
|
||||
|
|
Loading…
Reference in New Issue