[libChf] commet unused code

This commit is contained in:
Gwenhael Le Moine 2024-10-08 15:12:35 +02:00
parent 14fb5547d3
commit af4e8076db
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
2 changed files with 30 additions and 30 deletions

View file

@ -206,27 +206,27 @@ void ChfPushHandler( /* Push a new handler into the stack */
- improved documentation
.- */
void ChfPopHandler( /* Pop a handler */
const int module_id )
{
/* Make sure that CHF has been correctly initialized and is idle */
if ( chf_context.state == CHF_UNKNOWN )
ChfAbort( CHF_ABORT_INIT );
/* void ChfPopHandler( /\* Pop a handler *\/ */
/* const int module_id ) */
/* { */
/* /\* Make sure that CHF has been correctly initialized and is idle *\/ */
/* if ( chf_context.state == CHF_UNKNOWN ) */
/* ChfAbort( CHF_ABORT_INIT ); */
if ( chf_context.state != CHF_IDLE ) {
CHF_Condition( module_id ) CHF_F_BAD_STATE, CHF_FATAL ChfEnd;
/* if ( chf_context.state != CHF_IDLE ) { */
/* CHF_Condition( module_id ) CHF_F_BAD_STATE, CHF_FATAL ChfEnd; */
ChfSignal( module_id );
}
/* ChfSignal( module_id ); */
/* } */
/* Check if the handler stack is empty */
else if ( chf_context.handler_sp == chf_context.handler_stack ) {
CHF_Condition( module_id ) CHF_F_HDLR_STACK_EMPTY, CHF_FATAL ChfEnd;
/* /\* Check if the handler stack is empty *\/ */
/* else if ( chf_context.handler_sp == chf_context.handler_stack ) { */
/* CHF_Condition( module_id ) CHF_F_HDLR_STACK_EMPTY, CHF_FATAL ChfEnd; */
ChfSignal( module_id );
}
/* ChfSignal( module_id ); */
/* } */
/* Discard the topmost condition handler */
else
--chf_context.handler_sp;
}
/* /\* Discard the topmost condition handler *\/ */
/* else */
/* --chf_context.handler_sp; */
/* } */

View file

@ -353,15 +353,15 @@ void ChfSignal( const int module_id )
1.1, 17-May-1996, creation
.- */
void ChfDiscard( /* Discard the current conditions */
void )
{
/* Check that CHF has been correctly initialized */
if ( chf_context.state == CHF_UNKNOWN )
ChfAbort( CHF_ABORT_INIT );
/* void ChfDiscard( /\* Discard the current conditions *\/ */
/* void ) */
/* { */
/* /\* Check that CHF has been correctly initialized *\/ */
/* if ( chf_context.state == CHF_UNKNOWN ) */
/* ChfAbort( CHF_ABORT_INIT ); */
/* Reset the current condition stack pointer to the current condition
stack base pointer
*/
chf_context.condition_sp = chf_context.condition_base;
}
/* /\* Reset the current condition stack pointer to the current condition */
/* stack base pointer */
/* *\/ */
/* chf_context.condition_sp = chf_context.condition_base; */
/* } */