0
0
mirror of https://github.com/vim/vim.git synced 2025-10-22 08:34:29 -04:00

patch 8.2.0085: dead code in builtin functions

Problem:    Dead code in builtin functions.
Solution:   Clean up the code.
This commit is contained in:
Bram Moolenaar
2020-01-04 16:13:49 +01:00
parent 0892832bb6
commit 3d8a513b46
4 changed files with 9 additions and 15 deletions

View File

@@ -351,9 +351,6 @@ f_sound_playevent(typval_T *argvars, typval_T *rettv)
{
WCHAR *wp;
rettv->v_type = VAR_NUMBER;
rettv->vval.v_number = 0;
wp = enc_to_utf16(tv_get_string(&argvars[0]), NULL);
if (wp == NULL)
return;
@@ -375,9 +372,6 @@ f_sound_playfile(typval_T *argvars, typval_T *rettv)
char buf[32];
MCIERROR err;
rettv->v_type = VAR_NUMBER;
rettv->vval.v_number = 0;
esc = vim_strsave_shellescape(tv_get_string(&argvars[0]), FALSE, FALSE);
len = STRLEN(esc) + 5 + 18 + 1;