remove unused

This commit is contained in:
rusefi 2017-05-15 21:25:32 -04:00
parent 10b6ec29be
commit 7308a4295f
3 changed files with 5 additions and 6 deletions

View File

@ -380,8 +380,7 @@ StartupFuelPumping::StartupFuelPumping() {
pumpsCounter = 0; pumpsCounter = 0;
} }
void StartupFuelPumping::setPumpsCounter( void StartupFuelPumping::setPumpsCounter(int newValue) {
engine_configuration_s *engineConfiguration, int newValue) {
if (pumpsCounter != newValue) { if (pumpsCounter != newValue) {
pumpsCounter = newValue; pumpsCounter = newValue;
@ -399,14 +398,14 @@ void StartupFuelPumping::update(DECLARE_ENGINE_PARAMETER_F) {
bool isTpsAbove50 = getTPS(PASS_ENGINE_PARAMETER_F) >= 50; bool isTpsAbove50 = getTPS(PASS_ENGINE_PARAMETER_F) >= 50;
if (this->isTpsAbove50 != isTpsAbove50) { if (this->isTpsAbove50 != isTpsAbove50) {
setPumpsCounter(engineConfiguration, pumpsCounter + 1); setPumpsCounter(pumpsCounter + 1);
} }
} else { } else {
/** /**
* Engine is not stopped - not priming pumping mode * Engine is not stopped - not priming pumping mode
*/ */
setPumpsCounter(engineConfiguration, 0); setPumpsCounter(0);
isTpsAbove50 = false; isTpsAbove50 = false;
} }
} }

View File

@ -440,7 +440,7 @@ public:
bool isTpsAbove50; bool isTpsAbove50;
int pumpsCounter; int pumpsCounter;
private: private:
void setPumpsCounter(engine_configuration_s *engineConfiguration, int newValue); void setPumpsCounter(int newValue);
}; };
void prepareShapes(DECLARE_ENGINE_PARAMETER_F); void prepareShapes(DECLARE_ENGINE_PARAMETER_F);

View File

@ -47,7 +47,7 @@ void resetConsoleActions(void) {
static void doAddAction(const char *token, action_type_e type, Void callback, void *param) { static void doAddAction(const char *token, action_type_e type, Void callback, void *param) {
efiAssertVoid(consoleActionCount < CONSOLE_MAX_ACTIONS, "Too many console actions"); efiAssertVoid(consoleActionCount < CONSOLE_MAX_ACTIONS, "Too many console actions");
TokenCallback *current = &consoleActions[consoleActionCount++]; TokenCallback *current = &consoleActions[consoleActionCount++];
for (int i = 0; i< efiStrlen(token);i++) { for (uint32_t i = 0; i< efiStrlen(token);i++) {
char ch = token[i]; char ch = token[i];
if (ch != mytolower(ch)) { if (ch != mytolower(ch)) {
firmwareError(CUSTOM_ERR_COMMAND_LOWER_CASE_EXPECTED, "lowerCase expected [%s]", token); firmwareError(CUSTOM_ERR_COMMAND_LOWER_CASE_EXPECTED, "lowerCase expected [%s]", token);