eval: Remove eval_expr() completely

This commit is contained in:
ZyX
2016-09-04 02:50:50 +03:00
parent c8e63a8db8
commit 5df35297f8
3 changed files with 13 additions and 31 deletions

View File

@@ -1178,23 +1178,6 @@ int get_spellword(list_T *list, const char **pp)
return tv_get_number(&li->li_tv);
}
/*
* Top level evaluation function.
* Returns an allocated typval_T with the result.
* Returns NULL when there is an error.
*/
typval_T *eval_expr(char_u *arg, char_u **nextcmd)
{
typval_T *tv = xmalloc(sizeof(typval_T));
if (eval0(arg, tv, nextcmd, TRUE) == FAIL) {
xfree(tv);
return NULL;
}
return tv;
}
// Call some vimL function and return the result in "*rettv".
// Uses argv[argc] for the function arguments. Only Number and String