X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_structure.c;h=bae561149b2fa0cd141b7eda1c9483faec424248;hb=8f68cc66f40adeae9869252fff8d188fafb58043;hp=3a7be97c8683f63075f629447aa3c903ad5ba244;hpb=a5e39e2546cb979ef5a224a808229f27963537c7;p=freeglut diff --git a/src/freeglut_structure.c b/src/freeglut_structure.c index 3a7be97..bae5611 100644 --- a/src/freeglut_structure.c +++ b/src/freeglut_structure.c @@ -282,12 +282,6 @@ void fgDestroyWindow( SFG_Window* window, GLboolean needToClose ) while( subWindow = ( SFG_Window * )window->Children.First ) fgDestroyWindow( subWindow, needToClose ); - /* - * XXX Since INVOKE_WCB() tests the function pointer, why not make - * XXX this unconditional? Overhead is close to nil, and it would - * XXX clarify the code by omitting a conditional test. - */ - if( FETCH_WCB( *window, Destroy ) ) { SFG_Window *activeWindow = fgStructure.Window ; INVOKE_WCB( *window, Destroy, ( ) );