mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 10:56:31 +00:00
Remove nonnullret deadcode: viminfo_readstring.
This commit is contained in:
@@ -1447,8 +1447,6 @@ void copy_viminfo_marks(vir_T *virp, FILE *fp_out, int count, int eof, int flags
|
|||||||
*/
|
*/
|
||||||
str = skipwhite(line + 1);
|
str = skipwhite(line + 1);
|
||||||
str = viminfo_readstring(virp, (int)(str - virp->vir_line), FALSE);
|
str = viminfo_readstring(virp, (int)(str - virp->vir_line), FALSE);
|
||||||
if (str == NULL)
|
|
||||||
continue;
|
|
||||||
p = str + STRLEN(str);
|
p = str + STRLEN(str);
|
||||||
while (p != str && (*p == NUL || vim_isspace(*p)))
|
while (p != str && (*p == NUL || vim_isspace(*p)))
|
||||||
p--;
|
p--;
|
||||||
|
@@ -4627,18 +4627,15 @@ int read_viminfo_search_pattern(vir_T *virp, int force)
|
|||||||
hlsearch_on = TRUE;
|
hlsearch_on = TRUE;
|
||||||
if (idx >= 0) {
|
if (idx >= 0) {
|
||||||
if (force || spats[idx].pat == NULL) {
|
if (force || spats[idx].pat == NULL) {
|
||||||
val = viminfo_readstring(virp, (int)(lp - virp->vir_line + 1),
|
val = viminfo_readstring(virp, (int)(lp - virp->vir_line + 1), TRUE);
|
||||||
TRUE);
|
set_last_search_pat(val, idx, magic, setlast);
|
||||||
if (val != NULL) {
|
free(val);
|
||||||
set_last_search_pat(val, idx, magic, setlast);
|
spats[idx].no_scs = no_scs;
|
||||||
free(val);
|
spats[idx].off.line = off_line;
|
||||||
spats[idx].no_scs = no_scs;
|
spats[idx].off.end = off_end;
|
||||||
spats[idx].off.line = off_line;
|
spats[idx].off.off = off;
|
||||||
spats[idx].off.end = off_end;
|
if (setlast) {
|
||||||
spats[idx].off.off = off;
|
SET_NO_HLSEARCH(!hlsearch_on);
|
||||||
if (setlast) {
|
|
||||||
SET_NO_HLSEARCH(!hlsearch_on);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user