From 4500253f60ed634a7dcad15dfdaa2927afb99cdb Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Sun, 22 Aug 2021 10:10:15 +0200 Subject: refactor(syntax): don't use pointer indirected maps for no reason --- src/nvim/main.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/nvim/main.c') diff --git a/src/nvim/main.c b/src/nvim/main.c index 136608afdf..2cdf01b146 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -166,7 +166,6 @@ void early_init(mparm_T *paramp) init_path(argv0 ? argv0 : "nvim"); init_normal_cmds(); // Init the table of Normal mode commands. highlight_init(); - syntax_init(); #ifdef WIN32 OSVERSIONINFO ovi; -- cgit From b2277a42790907424ed2cd37d3d991650bb88441 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Sun, 22 Aug 2021 10:40:16 +0200 Subject: refactor(map): get rid of spurious subsystem_init() functions due to maps --- src/nvim/main.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/nvim/main.c') diff --git a/src/nvim/main.c b/src/nvim/main.c index 2cdf01b146..048bf877b5 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -126,8 +126,6 @@ void event_init(void) signal_init(); // finish mspgack-rpc initialization channel_init(); - remote_ui_init(); - api_vim_init(); terminal_init(); ui_init(); } @@ -161,7 +159,6 @@ void early_init(mparm_T *paramp) env_init(); fs_init(); handle_init(); - decor_init(); eval_init(); // init global variables init_path(argv0 ? argv0 : "nvim"); init_normal_cmds(); // Init the table of Normal mode commands. -- cgit From c265fd31ab2b0307650ad94e1ea272e9360c345f Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Sun, 22 Aug 2021 11:25:59 +0200 Subject: refactor(api): remove unneccesary indirection around handles These things are just maps to pointers, no need to perform a huge song and dance around it. --- src/nvim/main.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/nvim/main.c') diff --git a/src/nvim/main.c b/src/nvim/main.c index 048bf877b5..9fc82a75af 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -78,7 +78,6 @@ #include "nvim/api/ui.h" #include "nvim/api/private/defs.h" #include "nvim/api/private/helpers.h" -#include "nvim/api/private/handle.h" #include "nvim/api/private/dispatch.h" #ifndef WIN32 # include "nvim/os/pty_process_unix.h" @@ -158,7 +157,6 @@ void early_init(mparm_T *paramp) { env_init(); fs_init(); - handle_init(); eval_init(); // init global variables init_path(argv0 ? argv0 : "nvim"); init_normal_cmds(); // Init the table of Normal mode commands. -- cgit