From 2a949f6cd2a5de8a162630416ab6acb42346d755 Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 1 Sep 2022 00:23:19 -0400 Subject: [PATCH] dead code --- firmware/controllers/algo/runtime_state.cpp | 1 - .../controllers/engine_cycle/main_trigger_callback.cpp | 7 ------- 2 files changed, 8 deletions(-) diff --git a/firmware/controllers/algo/runtime_state.cpp b/firmware/controllers/algo/runtime_state.cpp index 2b697593bc..c75eb5e665 100644 --- a/firmware/controllers/algo/runtime_state.cpp +++ b/firmware/controllers/algo/runtime_state.cpp @@ -25,7 +25,6 @@ extern uint32_t maxPrecisionCallbackDuration; #endif /* EFI_PROD_CODE */ extern uint32_t maxSchedulingPrecisionLoss; -extern uint32_t *cyccnt; void resetMaxValues() { #if (EFI_PROD_CODE || EFI_SIMULATOR) && EFI_SHAFT_POSITION_INPUT diff --git a/firmware/controllers/engine_cycle/main_trigger_callback.cpp b/firmware/controllers/engine_cycle/main_trigger_callback.cpp index fe60576d5d..4565815ee3 100644 --- a/firmware/controllers/engine_cycle/main_trigger_callback.cpp +++ b/firmware/controllers/engine_cycle/main_trigger_callback.cpp @@ -331,13 +331,6 @@ static void handleFuel(const bool limitedFuel, uint32_t trgEventIndex, int rpm, fs->onTriggerTooth(rpm, nowNt, currentPhase, nextPhase); } -#if EFI_PROD_CODE -/** - * this field is used as an Expression in IAR debugger - */ -uint32_t *cyccnt = (uint32_t*) &DWT->CYCCNT; -#endif - bool noFiringUntilVvtSync(vvt_mode_e vvtMode) { auto operationMode = engine->getOperationMode();