summaryrefslogtreecommitdiff
path: root/src/blob.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2021-07-23 20:37:56 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-23 20:37:56 +0200
commit0ad871dc4dfe1026e14931a55c225616b63f4c5b (patch)
treea83e1cf4e231864e182c4b9ce70c37460d2200dd /src/blob.c
parent1b862c466ba4242857eec581f67982d265005ef4 (diff)
downloadvim-git-0ad871dc4dfe1026e14931a55c225616b63f4c5b.tar.gz
patch 8.2.3206: Vim9: argument types are not checked at compile timev8.2.3206
Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8611)
Diffstat (limited to 'src/blob.c')
-rw-r--r--src/blob.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/blob.c b/src/blob.c
index 6855935ec..57fe58b05 100644
--- a/src/blob.c
+++ b/src/blob.c
@@ -418,12 +418,6 @@ blob_remove(typval_T *argvars, typval_T *rettv)
long idx;
long end;
- if (in_vim9script()
- && (check_for_blob_arg(argvars, 0) == FAIL
- || check_for_number_arg(argvars, 1) == FAIL
- || check_for_opt_number_arg(argvars, 2) == FAIL))
- return;
-
idx = (long)tv_get_number_chk(&argvars[1], &error);
if (!error)
{