Skip to content

Remove Dead Functions #506

Description

@arielswalker

Checklist (Please check before submitting)

  • I reviewed the Contributing Guide.
  • I performed a cursory search to see if the bug report is relevant, not redundant, nor in conflict with other tickets.

Describe the bug
An internal static code analysis tool flagged several dead functions.

To Reproduce
Run the internal static code analysis tool.

Expected behavior
Remove these functions or document the reason to keep the code as is.

Code snips

CF_CFDP_Class_t Any_cfdp_class_t(void)

void Test_CF_WriteQueueCmd_When_CF_WriteHistoryDataToFile_FailsOnSecondCallAnd_wq_IsDownAnd_queue_IsActive_fd_IsPositive_Call_CF_WrappedClose_SendEventCloseAndRejectCommand(

CF_Direction_t Any_direction_t(void)

CF_CFDP_ConditionCode_t Any_condition_code_t(void)

void Test_CF_WriteHistoryEntryToFile(void)

void UT_DefaultHandler_CF_CFDP_ResetTransaction(void *UserObj, UT_EntryKey_t FuncKey, const UT_StubContext_t *Context)

void UT_DefaultHandler_CF_CList_CF_CList_Pop(void *UserObj, UT_EntryKey_t FuncKey, const UT_StubContext_t *Context)

void UT_DefaultHandler_CF_ProcessGroundCommand(void *UserObj, UT_EntryKey_t FuncKey, const UT_StubContext_t *Context)

void UT_DefaultHandler_CF_TxnStatus_IsError(void *UserObj, UT_EntryKey_t FuncKey, const UT_StubContext_t *Context)

void UT_AltHandler_CF_TraverseAllTransactions_All_Channels_Set_Context(void *UserObj,

bool Any_bool(void)

char Any_char(void)

void AnyBufferOf_uint8_WithSize(uint8 *buffer, size_t size)

uint8 Any_0_or_1(void)

uint8 Any_uint8_ExceptSetBits(uint8 bits)

uint8 Any_uint8_ExceptUnsetBits(uint8 bits)

uint16 Any_uint16_BetweenExcludeMax(uint16 floor, uint16 ceiling)

uint16 Any_uint16_GreaterThan(uint16 floor)

uint32 Any_uint32_BetweenInclusive(uint32 min, uint32 max)

uint32 Any_uint32_BetweenExcludeMax(uint32 min, uint32 max)

int32 Any_int32_LessThan(int32 ceiling)

int Any_int_PositiveExcept(int exception)

int Any_int_ZeroOrPositiveLessThan(int ceiling)

int32 Any_int32_ZeroOrPositive()

char *AnyFilenameOfLength(size_t length)

char *AnyRandomStringOfTextOfLength(size_t length)

void Any_CFE_TIME_SysTime_Set(CFE_TIME_SysTime_t *fake_time)

CFE_Status_t Any_CFE_Status_t_Negative()

CFE_Status_t Any_CFE_Status_t_Except(CFE_Status_t exception)

System observed on:
Internal static code analysis tool, RedHat, cFS dev

Reporter Info
Ariel Walker, MCSG TECH.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions