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.
This commit is contained in:
Björn Linse
2021-08-22 11:25:59 +02:00
parent b888018aed
commit c265fd31ab
14 changed files with 19 additions and 84 deletions

View File

@@ -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.