Remove nonnullret deadcode: addstar.

This commit is contained in:
Eliseo Martínez
2015-01-23 14:16:42 +01:00
parent 2ad0ca9c76
commit c94863dec4
2 changed files with 1 additions and 6 deletions

View File

@@ -4331,10 +4331,7 @@ static int ins_complete(int c)
compl_col += startcol; compl_col += startcol;
compl_length = (int)curs_col - startcol; compl_length = (int)curs_col - startcol;
compl_pattern = addstar(line + compl_col, compl_length, compl_pattern = addstar(line + compl_col, compl_length, EXPAND_FILES);
EXPAND_FILES);
if (compl_pattern == NULL)
return FAIL;
} else if (ctrl_x_mode == CTRL_X_CMDLINE) { } else if (ctrl_x_mode == CTRL_X_CMDLINE) {
compl_pattern = vim_strnsave(line, curs_col); compl_pattern = vim_strnsave(line, curs_col);
set_cmd_context(&compl_xp, compl_pattern, set_cmd_context(&compl_xp, compl_pattern,

View File

@@ -3505,8 +3505,6 @@ expand_cmdline (
/* add star to file name, or convert to regexp if not exp. files. */ /* add star to file name, or convert to regexp if not exp. files. */
xp->xp_pattern_len = (int)(str + col - xp->xp_pattern); xp->xp_pattern_len = (int)(str + col - xp->xp_pattern);
file_str = addstar(xp->xp_pattern, xp->xp_pattern_len, xp->xp_context); file_str = addstar(xp->xp_pattern, xp->xp_pattern_len, xp->xp_context);
if (file_str == NULL)
return EXPAND_UNSUCCESSFUL;
if (p_wic) if (p_wic)
options += WILD_ICASE; options += WILD_ICASE;