forked from aniani/vim
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user