From 1b1bd0065da26a84e3d8f8919e11d53c1894c934 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sun, 7 Mar 2021 23:37:54 -0500 Subject: [PATCH] removing dead code - initialize() sets 'true' already --- firmware/controllers/trigger/decoders/trigger_mazda.cpp | 2 -- firmware/controllers/trigger/decoders/trigger_misc.cpp | 1 - firmware/controllers/trigger/decoders/trigger_rover.cpp | 1 - firmware/controllers/trigger/decoders/trigger_subaru.cpp | 3 --- firmware/controllers/trigger/decoders/trigger_vw.cpp | 3 --- 5 files changed, 10 deletions(-) diff --git a/firmware/controllers/trigger/decoders/trigger_mazda.cpp b/firmware/controllers/trigger/decoders/trigger_mazda.cpp index bf06b34cd5..9b6b9d8448 100644 --- a/firmware/controllers/trigger/decoders/trigger_mazda.cpp +++ b/firmware/controllers/trigger/decoders/trigger_mazda.cpp @@ -30,8 +30,6 @@ void initializeMazdaMiataNaShape(TriggerWaveform *s) { s->tdcPosition = 294; - s->isSynchronizationNeeded = true; - /** * http://rusefi.com/forum/viewtopic.php?f=3&t=729&p=12983#p12983 */ diff --git a/firmware/controllers/trigger/decoders/trigger_misc.cpp b/firmware/controllers/trigger/decoders/trigger_misc.cpp index 6aeef863c3..27c94ebeb7 100644 --- a/firmware/controllers/trigger/decoders/trigger_misc.cpp +++ b/firmware/controllers/trigger/decoders/trigger_misc.cpp @@ -51,7 +51,6 @@ void configureTriTach(TriggerWaveform * s) { void configureFordST170(TriggerWaveform * s) { s->initialize(FOUR_STROKE_CAM_SENSOR); - s->isSynchronizationNeeded = true; int width = 10; int total = s->getCycleDuration() / 8; diff --git a/firmware/controllers/trigger/decoders/trigger_rover.cpp b/firmware/controllers/trigger/decoders/trigger_rover.cpp index 4218472ec0..dff17017f7 100644 --- a/firmware/controllers/trigger/decoders/trigger_rover.cpp +++ b/firmware/controllers/trigger/decoders/trigger_rover.cpp @@ -18,7 +18,6 @@ void initializeRoverK(TriggerWaveform *s) { s->setTriggerSynchronizationGap(2.0); s->setThirdTriggerSynchronizationGap(2); - s->isSynchronizationNeeded = true; float base = 0; diff --git a/firmware/controllers/trigger/decoders/trigger_subaru.cpp b/firmware/controllers/trigger/decoders/trigger_subaru.cpp index da88e92c7a..9f12f29de5 100644 --- a/firmware/controllers/trigger/decoders/trigger_subaru.cpp +++ b/firmware/controllers/trigger/decoders/trigger_subaru.cpp @@ -17,7 +17,6 @@ void initialize36_2_2_2(TriggerWaveform *s) { float wide = 30 * 2; float narrow = 10 * 2; - s->isSynchronizationNeeded = true; s->setTriggerSynchronizationGap(0.5); s->setSecondTriggerSynchronizationGap(1); @@ -118,8 +117,6 @@ static void initializeSubaru7_6(TriggerWaveform *s, bool withCrankWheel) { s->setTriggerSynchronizationGap2(4.9, 9); s->setTriggerSynchronizationGap3(1, 0.6, 1.25); - s->isSynchronizationNeeded = true; - s->useOnlyPrimaryForSync = true; } diff --git a/firmware/controllers/trigger/decoders/trigger_vw.cpp b/firmware/controllers/trigger/decoders/trigger_vw.cpp index 5ea035499e..772feddc06 100644 --- a/firmware/controllers/trigger/decoders/trigger_vw.cpp +++ b/firmware/controllers/trigger/decoders/trigger_vw.cpp @@ -30,9 +30,6 @@ void setSkodaFavorit(TriggerWaveform *s) { void setVwConfiguration(TriggerWaveform *s) { s->initialize(FOUR_STROKE_CRANK_SENSOR); - s->isSynchronizationNeeded = true; - - int totalTeethCount = 60; int skippedCount = 2;