aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-12-27 06:19:39 +0800
committerGitHub <noreply@github.com>2022-12-27 06:19:39 +0800
commitdae213584939c4144a85b518f8dd8a9a3cd3c282 (patch)
tree23b7c00726205058e5d33de370c0f6f4465f80fd
parentfe5665be3b49c4ebc1257de8b9c6ed81254fd762 (diff)
downloadrneovim-dae213584939c4144a85b518f8dd8a9a3cd3c282.tar.gz
rneovim-dae213584939c4144a85b518f8dd8a9a3cd3c282.tar.bz2
rneovim-dae213584939c4144a85b518f8dd8a9a3cd3c282.zip
vim-patch:9.0.1101: unused global variable (#21549)
Problem: Unused global variable. Solution: Remove the variable. (closes vim/vim#11752) https://github.com/vim/vim/commit/b536540ab3c13db629432c411e92c05c4a3808ba Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r--src/nvim/globals.h3
-rw-r--r--src/nvim/main.c2
2 files changed, 0 insertions, 5 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h
index bce81b376b..52a48a8389 100644
--- a/src/nvim/globals.h
+++ b/src/nvim/globals.h
@@ -1039,9 +1039,6 @@ EXTERN char bot_top_msg[] INIT(= N_("search hit BOTTOM, continuing at TOP"));
EXTERN char line_msg[] INIT(= N_(" line "));
-// For undo we need to know the lowest time possible.
-EXTERN time_t starttime;
-
EXTERN FILE *time_fd INIT(= NULL); // where to write startup timing
// Some compilers warn for not using a return value, but in some situations we
diff --git a/src/nvim/main.c b/src/nvim/main.c
index a7f07af1a8..9e14e911ff 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -1406,8 +1406,6 @@ static void init_startuptime(mparm_T *paramp)
break;
}
}
-
- starttime = time(NULL);
}
static void check_and_set_isatty(mparm_T *paramp)