Skip to content

Commit

Permalink
Remove an unused restrict proc.
Browse files Browse the repository at this point in the history
  • Loading branch information
culler committed Oct 15, 2024
1 parent 0858e92 commit dedbbe2
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions macosx/tkMacOSXWindowEvent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dedbbe2

Please sign in to comment.