From 83c6ac9f9785918f84380666098807d008c06a83 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Wed, 1 Nov 2023 17:16:14 -0700 Subject: [PATCH] these lines just did NOTHING? --- unit_tests/engine_test_helper.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/unit_tests/engine_test_helper.cpp b/unit_tests/engine_test_helper.cpp index e373b46024..009a022be0 100644 --- a/unit_tests/engine_test_helper.cpp +++ b/unit_tests/engine_test_helper.cpp @@ -187,14 +187,12 @@ void EngineTestHelper::smartFireFall(float delayMs) { */ void EngineTestHelper::firePrimaryTriggerRise() { efitick_t nowNt = getTimeNowNt(); - Engine *engine = &this->engine; LogTriggerTooth(SHAFT_PRIMARY_RISING, nowNt); handleShaftSignal(0, true, nowNt); } void EngineTestHelper::firePrimaryTriggerFall() { efitick_t nowNt = getTimeNowNt(); - Engine *engine = &this->engine; LogTriggerTooth(SHAFT_PRIMARY_FALLING, nowNt); handleShaftSignal(0, false, nowNt); } @@ -344,15 +342,11 @@ void EngineTestHelper::applyTriggerWaveform() { // todo: open question if this is worth a helper method or should be inlined? void EngineTestHelper::assertRpm(int expectedRpm, const char *msg) { - Engine *engine = &this->engine; - EXPECT_EQ(expectedRpm, Sensor::getOrZero(SensorType::Rpm)) << msg; } void setupSimpleTestEngineWithMaf(EngineTestHelper *eth, injection_mode_e injectionMode, trigger_type_e trigger) { - Engine *engine = ð->engine; - engineConfiguration->isIgnitionEnabled = false; // let's focus on injection engineConfiguration->cylindersCount = 4; // a bit of flexibility - the mode may be changed by some tests