Skip to content

Commit

Permalink
Remove unused const FEAT_SHORTCUT
Browse files Browse the repository at this point in the history
  • Loading branch information
Hettomei committed May 8, 2015
1 parent 8cbc213 commit 69188a0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
14 changes: 0 additions & 14 deletions src/nvim/buffer.c
Expand Up @@ -3570,20 +3570,6 @@ void fname_expand(buf_T *buf, char_u **ffname, char_u **sfname)
if (*sfname == NULL) /* if no short file name given, use ffname */
*sfname = *ffname;
*ffname = (char_u *)fix_fname((char *)*ffname); /* expand to full path */

#ifdef FEAT_SHORTCUT
if (!buf->b_p_bin) {
char_u *rfname;

/* If the file name is a shortcut file, use the file it links to. */
rfname = mch_resolve_shortcut(*ffname);
if (rfname != NULL) {
xfree(*ffname);
*ffname = rfname;
*sfname = rfname;
}
}
#endif
}

/*
Expand Down
12 changes: 0 additions & 12 deletions src/nvim/eval.c
Expand Up @@ -12421,17 +12421,6 @@ static void f_resolve(typval_T *argvars, typval_T *rettv)
#endif

p = get_tv_string(&argvars[0]);
#ifdef FEAT_SHORTCUT
{
char_u *v = NULL;

v = mch_resolve_shortcut(p);
if (v != NULL)
rettv->vval.v_string = v;
else
rettv->vval.v_string = vim_strsave(p);
}
#else
# ifdef HAVE_READLINK
{
char_u *cpy;
Expand Down Expand Up @@ -12572,7 +12561,6 @@ static void f_resolve(typval_T *argvars, typval_T *rettv)
# else
rettv->vval.v_string = vim_strsave(p);
# endif
#endif

simplify_filename(rettv->vval.v_string);

Expand Down

0 comments on commit 69188a0

Please sign in to comment.