From 72ab9b013532ee3c3250a70d4122ac81c9870b4c Mon Sep 17 00:00:00 2001 From: "Marco Antonio J. Costa" Date: Mon, 6 Oct 2025 20:46:38 -0300 Subject: [PATCH] Remove unused CreateDestroyATMButton --- Laptop/personnel.cpp | 111 ------------------------------------------- 1 file changed, 111 deletions(-) diff --git a/Laptop/personnel.cpp b/Laptop/personnel.cpp index 1214ea8e..04820dfa 100644 --- a/Laptop/personnel.cpp +++ b/Laptop/personnel.cpp @@ -421,7 +421,6 @@ void DisplayATMAmount( void ); // create destroy ATM button void CreateDestroyStartATMButton( void ); -void CreateDestroyATMButton( void ); void ATMNumberButtonCallback(GUI_BUTTON *btn,INT32 reason); void HandleStateOfATMButtons( void ); void ATMOtherButtonCallback(GUI_BUTTON *btn,INT32 reason); @@ -635,7 +634,6 @@ void ExitPersonnel( void ) fShowAtmPanel = FALSE; fATMFlags = 0; CreateDestroyStartATMButton( ); - CreateDestroyATMButton( ); gubPersonnelInfoState = PERSONNEL_STAT_BTN; @@ -5749,7 +5747,6 @@ BOOLEAN RenderAtmPanel( void ) // create destroy CreateDestroyStartATMButton( ); - CreateDestroyATMButton( ); // display strings for ATM DisplayATMStrings( ); @@ -5785,7 +5782,6 @@ BOOLEAN RenderAtmPanel( void ) // create destroy CreateDestroyStartATMButton( ); - CreateDestroyATMButton( ); } return( TRUE ); } @@ -5942,113 +5938,6 @@ void RenderSliderBarForPersonnelInventory( void ) BltVideoObject( FRAME_BUFFER, hHandle, 5,( INT16 ) ( X_OF_PERSONNEL_SCROLL_REGION ), ( INT16 ) ( guiSliderPosition + Y_OF_PERSONNEL_SCROLL_REGION), VO_BLT_SRCTRANSPARENCY,NULL); } -void CreateDestroyATMButton( void ) -{ - /* - static BOOLEAN fCreated = FALSE; - CHAR16 sString[ 32 ]; - - - - // create/destroy atm start button as needed - INT32 iCounter = 0; - - if( ( fCreated == FALSE ) && ( fShowAtmPanel == TRUE ) ) - { - - for( iCounter = 0; iCounter < 10; iCounter++ ) - { - if( iCounter != 9 ) - { - iNumberPadButtonsImages[ iCounter ]=LoadButtonImage( "LAPTOP\\AtmButtons.sti" ,-1,4,-1,6,-1 ); - swprintf( sString, L"%d", iCounter+1 ); - } - else - { - iNumberPadButtonsImages[ iCounter ]=LoadButtonImage( "LAPTOP\\AtmButtons.sti" ,-1,7,-1,9,-1 ); - swprintf( sString, L"%d", iCounter - 9 ); - } - - iNumberPadButtons[ iCounter ] = QuickCreateButton( iNumberPadButtonsImages[ iCounter ], ( INT16 )( ATM_BUTTONS_START_X + ( ATM_BUTTON_WIDTH * ( INT16 )( iCounter % 3 )) ), ( INT16 )( ATM_BUTTONS_START_Y + ( INT16 )( ATM_BUTTON_HEIGHT * ( iCounter / 3 ))) , - BUTTON_TOGGLE, MSYS_PRIORITY_HIGHEST - 1, - BtnGenericMouseMoveButtonCallback, (GUI_CALLBACK)ATMNumberButtonCallback ); - - if( iCounter != 9) - { - MSYS_SetBtnUserData(iNumberPadButtons[iCounter],0,iCounter + 1 ); - } - else - { - MSYS_SetBtnUserData(iNumberPadButtons[iCounter],0, 0 ); - } - SetButtonCursor(iNumberPadButtons[iCounter], CURSOR_LAPTOP_SCREEN); - SpecifyButtonFont( iNumberPadButtons[iCounter], PERS_FONT ); - SpecifyButtonText( iNumberPadButtons[iCounter], sString ); - SpecifyButtonUpTextColors( iNumberPadButtons[iCounter], FONT_BLACK, FONT_BLACK ); - - } - - - // now slap down done, cancel, dep, withdraw - for( iCounter = OK_ATM; iCounter < NUMBER_ATM_BUTTONS ;iCounter++ ) - { - if( iCounter == OK_ATM ) - { - giPersonnelATMSideButtonImage[ iCounter ]= LoadButtonImage( "LAPTOP\\AtmButtons.sti" ,-1,7,-1,9,-1 ); - } - else - { - giPersonnelATMSideButtonImage[ iCounter ]= LoadButtonImage( "LAPTOP\\AtmButtons.sti" ,-1,10,-1,12,-1 ); - } - - if( ( iCounter != DEPOSIT_ATM ) && ( iCounter != WIDTHDRAWL_ATM ) ) - { - giPersonnelATMSideButton[ iCounter ] = QuickCreateButton( giPersonnelATMSideButtonImage[ iCounter ], ( INT16 )( pAtmSideButtonPts[ iCounter ].x ), ( INT16 )( pAtmSideButtonPts[ iCounter ].y ), - BUTTON_TOGGLE, MSYS_PRIORITY_HIGHEST - 1, - BtnGenericMouseMoveButtonCallback, (GUI_CALLBACK)ATMOtherButtonCallback ); - } - else - { - giPersonnelATMSideButton[ iCounter ] = QuickCreateButton( giPersonnelATMSideButtonImage[ iCounter ], ( INT16 )( pAtmSideButtonPts[ iCounter ].x ), ( INT16 )( pAtmSideButtonPts[ iCounter ].y ), - BUTTON_TOGGLE, MSYS_PRIORITY_HIGHEST - 1, - BtnGenericMouseMoveButtonCallback, (GUI_CALLBACK)ATMOther2ButtonCallback ); - } - MSYS_SetBtnUserData(giPersonnelATMSideButton[iCounter],0,iCounter ); - SpecifyButtonFont( giPersonnelATMSideButton[iCounter], PERS_FONT ); - SetButtonCursor(giPersonnelATMSideButton[iCounter], CURSOR_LAPTOP_SCREEN); - SpecifyButtonUpTextColors( giPersonnelATMSideButton[iCounter], FONT_BLACK, FONT_BLACK ); - SpecifyButtonText( giPersonnelATMSideButton[iCounter], gsAtmSideButtonText[ iCounter ] ); - } - - - //SetButtonCursor(giPersonnelATMStartButton, CURSOR_LAPTOP_SCREEN); - fCreated = TRUE; - } - else if( ( fCreated == TRUE ) && ( fShowAtmPanel == FALSE ) ) - { - // stop showing - //RemoveButton( giPersonnelATMButton ); - //UnloadButtonImage( giPersonnelATMButtonImage ); - - for( iCounter = 0; iCounter < 10; iCounter++ ) - { - UnloadButtonImage( iNumberPadButtonsImages[ iCounter ] ); - RemoveButton( iNumberPadButtons[ iCounter ] ); - } - - for( iCounter = OK_ATM; iCounter < NUMBER_ATM_BUTTONS ;iCounter++ ) - { - RemoveButton( giPersonnelATMSideButton[ iCounter ] ); - UnloadButtonImage( giPersonnelATMSideButtonImage[ iCounter ] ); - } - - fCreated = FALSE; - } - - */ -} - - void PersonnelDataButtonCallback( GUI_BUTTON *btn, INT32 reason ) { if (!(btn->uiFlags & BUTTON_ENABLED))