summaryrefslogtreecommitdiff
path: root/src/dosinst.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-08-08 16:38:42 +0200
committerBram Moolenaar <Bram@vim.org>2010-08-08 16:38:42 +0200
commit09092155a66388bbd7be8d16debb35abfcfae700 (patch)
tree4cbe7f4f0d5c763405f721f7f5dba08864e53ef3 /src/dosinst.c
parent83687a72155c70c062c689a9c545b5cdf5ebd0b4 (diff)
downloadvim-git-09092155a66388bbd7be8d16debb35abfcfae700.tar.gz
Remove unused code.
Diffstat (limited to 'src/dosinst.c')
-rw-r--r--src/dosinst.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/dosinst.c b/src/dosinst.c
index 84d171baf..0ff8e69b6 100644
--- a/src/dosinst.c
+++ b/src/dosinst.c
@@ -32,9 +32,6 @@ char *default_bat_dir = NULL; /* when not NULL, use this as the default
directory to write .bat files in */
char *default_vim_dir = NULL; /* when not NULL, use this as the default
install dir for NSIS */
-#if 0
-char homedir[BUFSIZE]; /* home directory or "" */
-#endif
/*
* Structure used for each choice the user can make.
@@ -720,39 +717,6 @@ inspect_system(void)
fclose(fd);
else
*oldvimrc = NUL;
-
-#if 0 /* currently not used */
- /*
- * Get default home directory.
- * Prefer $HOME if it's set. For Win NT use $HOMEDRIVE and $HOMEPATH.
- * Otherwise, if there is a "c:" drive use that.
- */
- p = getenv("HOME");
- if (p != NULL && *p != NUL && strlen(p) < BUFSIZE)
- strcpy(homedir, p);
- else
- {
- p = getenv("HOMEDRIVE");
- if (p != NULL && *p != NUL && strlen(p) + 2 < BUFSIZE)
- {
- strcpy(homedir, p);
- p = getenv("HOMEPATH");
- if (p != NULL && *p != NUL && strlen(homedir) + strlen(p) < BUFSIZE)
- strcat(homedir, p);
- else
- strcat(homedir, "\\");
- }
- else
- {
- struct stat st;
-
- if (stat("c:\\", &st) == 0)
- strcpy(homedir, "c:\\");
- else
- *homedir = NUL;
- }
- }
-#endif
}
/*