Cleanup: remove unused GHOST_kEventTimer

There was a type error assigning customdata, (wmTimer *) was expected
although this data isn't created so it was never hit.
This commit is contained in:
Campbell Barton 2023-10-08 14:31:15 +11:00
parent 0742ef808f
commit 8f8a9ef488
3 changed files with 0 additions and 14 deletions

View File

@ -304,8 +304,6 @@ typedef enum {
GHOST_kEventOpenMainFile, /* Needed for Cocoa to open double-clicked .blend file at startup. */
GHOST_kEventNativeResolutionChange, /* Needed for Cocoa when window moves to other display. */
GHOST_kEventTimer,
GHOST_kEventImeCompositionStart,
GHOST_kEventImeComposition,
GHOST_kEventImeCompositionEnd,

View File

@ -206,8 +206,6 @@ bool GHOST_EventPrinter::processEvent(GHOST_IEvent *event)
CASE_TYPE(GHOST_kEventNativeResolutionChange);
CASE_TYPE(GHOST_kEventTimer);
CASE_TYPE(GHOST_kEventImeCompositionStart);
CASE_TYPE(GHOST_kEventImeComposition);
CASE_TYPE(GHOST_kEventImeCompositionEnd);

View File

@ -5827,16 +5827,6 @@ void wm_event_add_ghostevent(wmWindowManager *wm, wmWindow *win, const int type,
break;
}
case GHOST_kEventTimer: {
event.type = TIMER;
event.custom = EVT_DATA_TIMER;
event.customdata = customdata;
event.val = KM_NOTHING;
event.keymodifier = 0;
wm_event_add(win, &event);
break;
}
#ifdef WITH_INPUT_NDOF
case GHOST_kEventNDOFMotion: {