From cdbab4c68ef96b220181735b9c492f3f5830ad35 Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 1 May 2020 12:05:18 -0400 Subject: [PATCH] sweet unused method --- firmware/controllers/engine_controller.cpp | 41 ---------------------- 1 file changed, 41 deletions(-) diff --git a/firmware/controllers/engine_controller.cpp b/firmware/controllers/engine_controller.cpp index 543b02f131..5566bafb9e 100644 --- a/firmware/controllers/engine_controller.cpp +++ b/firmware/controllers/engine_controller.cpp @@ -120,47 +120,6 @@ void initDataStructures(DECLARE_ENGINE_PARAMETER_SIGNATURE) { #endif // EFI_ENGINE_CONTROL } -static void mostCommonInitEngineController(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) { -#if !EFI_UNIT_TEST - // This is tested independently - don't configure sensors for tests. - // This lets us selectively mock them for each test. - initNewSensors(sharedLogger); -#endif /* EFI_UNIT_TEST */ - - initSensors(sharedLogger PASS_ENGINE_PARAMETER_SUFFIX); - - initAccelEnrichment(sharedLogger PASS_ENGINE_PARAMETER_SUFFIX); - -#if EFI_FSIO - initFsioImpl(sharedLogger PASS_ENGINE_PARAMETER_SUFFIX); -#endif /* EFI_FSIO */ - - initGpPwm(PASS_ENGINE_PARAMETER_SIGNATURE); - -#if EFI_IDLE_CONTROL - startIdleThread(sharedLogger PASS_ENGINE_PARAMETER_SUFFIX); -#endif /* EFI_IDLE_CONTROL */ - -#if EFI_ELECTRONIC_THROTTLE_BODY - initElectronicThrottle(PASS_ENGINE_PARAMETER_SIGNATURE); -#endif /* EFI_ELECTRONIC_THROTTLE_BODY */ - -#if EFI_MAP_AVERAGING - if (engineConfiguration->isMapAveragingEnabled) { - initMapAveraging(sharedLogger PASS_ENGINE_PARAMETER_SUFFIX); - } -#endif /* EFI_MAP_AVERAGING */ - -#if EFI_BOOST_CONTROL - initBoostCtrl(sharedLogger PASS_ENGINE_PARAMETER_SUFFIX); -#endif /* EFI_BOOST_CONTROL */ - -#if EFI_LAUNCH_CONTROL - initLaunchControl(sharedLogger PASS_ENGINE_PARAMETER_SUFFIX); -#endif /* EFI_LAUNCH_CONTROL */ - -} - #if EFI_ENABLE_MOCK_ADC static void initMockVoltage(void) {