diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-11 21:58:20 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-11 21:58:20 +0200 |
commit | 097148e849136b49052b1b5123c714fb1d74db9b (patch) | |
tree | d5b0bf4ce9b435be94de3ff7b87e85ae99c1e484 /src/if_mzsch.c | |
parent | 4301a729eabafee388aaf8465cf780d3f84cec95 (diff) | |
download | vim-git-097148e849136b49052b1b5123c714fb1d74db9b.tar.gz |
patch 8.2.1422: the Mac GUI implementation is outdatedv8.2.1422
Problem: The Mac GUI implementation is outdated and probably doesn't even
work.
Solution: Remove the Mac GUI code. The MacVim project provides the
supported Vim GUI version.
Diffstat (limited to 'src/if_mzsch.c')
-rw-r--r-- | src/if_mzsch.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/if_mzsch.c b/src/if_mzsch.c index bfcdbea97..7b5293670 100644 --- a/src/if_mzsch.c +++ b/src/if_mzsch.c @@ -812,10 +812,6 @@ static guint timer_id = 0; #elif defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_ATHENA) static void timer_proc(XtPointer, XtIntervalId *); static XtIntervalId timer_id = (XtIntervalId)0; -#elif defined(FEAT_GUI_MAC) -pascal void timer_proc(EventLoopTimerRef, void *); -static EventLoopTimerRef timer_id = NULL; -static EventLoopTimerUPP timerUPP; #endif #if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL) // Win32 console and Unix @@ -852,9 +848,6 @@ timer_proc(gpointer data UNUSED) # elif defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_ATHENA) static void timer_proc(XtPointer timed_out UNUSED, XtIntervalId *interval_id UNUSED) -# elif defined(FEAT_GUI_MAC) - pascal void -timer_proc(EventLoopTimerRef theTimer UNUSED, void *userData UNUSED) # endif { scheme_check_threads(); @@ -877,10 +870,6 @@ setup_timer(void) timer_id = g_timeout_add((guint)p_mzq, (GSourceFunc)timer_proc, NULL); # elif defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_ATHENA) timer_id = XtAppAddTimeOut(app_context, p_mzq, timer_proc, NULL); -# elif defined(FEAT_GUI_MAC) - timerUPP = NewEventLoopTimerUPP(timer_proc); - InstallEventLoopTimer(GetMainEventLoop(), p_mzq * kEventDurationMillisecond, - p_mzq * kEventDurationMillisecond, timerUPP, NULL, &timer_id); # endif } @@ -893,9 +882,6 @@ remove_timer(void) g_source_remove(timer_id); # elif defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_ATHENA) XtRemoveTimeOut(timer_id); -# elif defined(FEAT_GUI_MAC) - RemoveEventLoopTimer(timer_id); - DisposeEventLoopTimerUPP(timerUPP); # endif timer_id = 0; } |