aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-06-04 05:05:32 +0000
committerJustin M. Keyes <justinkz@gmail.com>2014-06-06 18:04:37 -0400
commit01ca4600bae9cd1aa5f0cfe4fc4294e7da0b4ee3 (patch)
tree2b1b77d574347919e38e6876db49e0559fb0d5a9 /src/nvim/eval.c
parent1e54b04bc0f68d65f8b751cb07aeb959258751f0 (diff)
downloadrneovim-01ca4600bae9cd1aa5f0cfe4fc4294e7da0b4ee3.tar.gz
rneovim-01ca4600bae9cd1aa5f0cfe4fc4294e7da0b4ee3.tar.bz2
rneovim-01ca4600bae9cd1aa5f0cfe4fc4294e7da0b4ee3.zip
Remove USE_CR and tag_fgets. #808
These features are only used by legacy Mac OS.
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 7408a7926a..31070c1118 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -14086,18 +14086,7 @@ static void f_system(typval_T *argvars, typval_T *rettv)
res = get_cmd_output(get_tv_string(&argvars[0]), infile,
kShellOptSilent | kShellOptCooked);
-#ifdef USE_CR
- /* translate <CR> into <NL> */
- if (res != NULL) {
- char_u *s;
-
- for (s = res; *s; ++s) {
- if (*s == CAR)
- *s = NL;
- }
- }
-#else
-# ifdef USE_CRNL
+#ifdef USE_CRNL
/* translate <CR><NL> into <NL> */
if (res != NULL) {
char_u *s, *d;
@@ -14110,7 +14099,6 @@ static void f_system(typval_T *argvars, typval_T *rettv)
}
*d = NUL;
}
-# endif
#endif
done: