changeset 31537:91924f1b59af v9.0.1101

patch 9.0.1101: unused global variable Commit: https://github.com/vim/vim/commit/b536540ab3c13db629432c411e92c05c4a3808ba Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 26 14:37:44 2022 +0000 patch 9.0.1101: unused global variable Problem: Unused global variable. Solution: Remove the variable. (closes https://github.com/vim/vim/issues/11752)
author Bram Moolenaar <Bram@vim.org>
date Mon, 26 Dec 2022 15:45:03 +0100
parents 9de9b581f328
children 57254edfb65b
files src/globals.h src/main.c src/version.c
diffstat 3 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/globals.h
+++ b/src/globals.h
@@ -1905,9 +1905,6 @@ EXTERN char need_key_msg[]  INIT(= N_("N
 EXTERN int xsmp_icefd INIT(= -1);   // The actual connection
 #endif
 
-// For undo we need to know the lowest time possible.
-EXTERN time_T starttime;
-
 #ifdef STARTUPTIME
 EXTERN FILE *time_fd INIT(= NULL);  // where to write startup timing
 #endif
--- a/src/main.c
+++ b/src/main.c
@@ -158,7 +158,6 @@ main
 # endif
     }
 #endif
-    starttime = time(NULL);
 
 #ifdef CLEAN_RUNTIMEPATH
     // Need to find "--clean" before actually parsing arguments.
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1101,
+/**/
     1100,
 /**/
     1099,