From dedbbe25c2c40b1fb76383abd4cf9570d16c035f Mon Sep 17 00:00:00 2001 From: culler Date: Tue, 15 Oct 2024 02:14:54 +0000 Subject: [PATCH] Remove an unused restrict proc. --- macosx/tkMacOSXWindowEvent.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c index 8cf662a21..8a84f9645 100644 --- a/macosx/tkMacOSXWindowEvent.c +++ b/macosx/tkMacOSXWindowEvent.c @@ -933,18 +933,6 @@ ExposeRestrictProc( ? TK_PROCESS_EVENT : TK_DEFER_EVENT); } -/* - * Restrict event processing to ConfigureNotify events. - */ - -static Tk_RestrictAction -ConfigureRestrictProc( - TCL_UNUSED(void *), - XEvent *eventPtr) -{ - return (eventPtr->type==ConfigureNotify ? TK_PROCESS_EVENT : TK_DEFER_EVENT); -} - @implementation TKContentView(TKWindowEvent) - (id)initWithFrame:(NSRect)frame @@ -1031,8 +1019,6 @@ ConfigureRestrictProc( if (winPtr) { unsigned int width = (unsigned int) newsize.width; unsigned int height= (unsigned int) newsize.height; - void *oldArg; - Tk_RestrictProc *oldProc; /* * This function can be re-entered, so we need to make sure we don't