Skip to content

Commit

Permalink
Removed unused function and unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
pasetti committed Oct 8, 2018
1 parent 7de2165 commit 00a17fd
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/InCmd/CrFwInCmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,6 @@ static void ReportStartFailed(FwSmDesc_t smDesc);
*/
static void ReportTerminationFailed(FwSmDesc_t smDesc);

/**
* Transition action on the transition from CPS3 to ABORTED which
* reports the failure of the Progress Action.
* @param smDesc the descriptor of the InCommand state machine
*/
static void ReportProgressFailed(FwSmDesc_t smDesc);

/**
* Transition action on the transition from CPS1 to PROGRESS.
* @param smDesc the descriptor of the InCommand state machine
Expand Down Expand Up @@ -214,7 +207,6 @@ CrFwPckt_t CrFwInCmdGetPcktFromPrDesc(FwPrDesc_t prDesc) {
/* --------------------------------------------------------------------------------- */
FwSmBool_t IsTerminationSuccess(FwSmDesc_t smDesc) {
CrFwCmpData_t* cmpData = (CrFwCmpData_t*)FwSmGetData(smDesc);
CrFwInCmdData_t* cmpSpecificData = (CrFwInCmdData_t*)(cmpData->cmpSpecificData);
if (cmpData->outcome == 1)
return 1;
return 0;
Expand Down Expand Up @@ -251,18 +243,6 @@ void ReportStartFailed(FwSmDesc_t smDesc) {
cmpData->outcome, smDesc);
}

/* --------------------------------------------------------------------------------- */
void ReportProgressFailed(FwSmDesc_t smDesc) {
CrFwCmpData_t* cmpData = (CrFwCmpData_t*)FwSmGetData(smDesc);
CrFwInCmdData_t* cmpSpecificData = (CrFwInCmdData_t*)(cmpData->cmpSpecificData);

CrFwRepInCmdOutcome(crCmdAckPrgFail, cmpData->instanceId,
CrFwPcktGetServType(cmpSpecificData->pckt),
CrFwPcktGetServSubType(cmpSpecificData->pckt),
CrFwPcktGetDiscriminant(cmpSpecificData->pckt),
cmpData->outcome, smDesc);
}

/* --------------------------------------------------------------------------------- */
void ReportStartSuccess(FwSmDesc_t smDesc) {
CrFwCmpData_t* cmpData = (CrFwCmpData_t*)FwSmGetData(smDesc);
Expand Down

0 comments on commit 00a17fd

Please sign in to comment.