aboutsummaryrefslogtreecommitdiff
path: root/src/platform/windows/win_file.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-05-30 14:12:16 -0700
committerGarrett D'Amore <garrett@damore.org>2018-05-30 14:12:16 -0700
commitb2338c1a6d1e57f01396a8e77c65734cb2f0ae17 (patch)
treef7ca90cff42143f8f4e74693b0d739b8621d9efc /src/platform/windows/win_file.c
parentd11d2acb55d6c5cdc02281346c394aef42a4fbc1 (diff)
downloadnng-b2338c1a6d1e57f01396a8e77c65734cb2f0ae17.tar.gz
nng-b2338c1a6d1e57f01396a8e77c65734cb2f0ae17.tar.bz2
nng-b2338c1a6d1e57f01396a8e77c65734cb2f0ae17.zip
fixes #499 Eliminate the unused nni_plat_home_dir...
Diffstat (limited to 'src/platform/windows/win_file.c')
-rw-r--r--src/platform/windows/win_file.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/platform/windows/win_file.c b/src/platform/windows/win_file.c
index 515647e0..3b6461a6 100644
--- a/src/platform/windows/win_file.c
+++ b/src/platform/windows/win_file.c
@@ -273,23 +273,6 @@ nni_plat_temp_dir(void)
return (nni_strdup(path));
}
-char *
-nni_plat_home_dir(void)
-{
- char *homedrv;
- char *homedir;
- char *result;
-
- if (((homedrv = getenv("HOMEDRIVE")) == NULL) ||
- ((homedir = getenv("HOMEPATH")) == NULL)) {
- return (NULL);
- }
- if (nni_asprintf(&result, "%s%s", homedrv, homedir) == 0) {
- return (result);
- }
- return (NULL);
-}
-
int
nni_plat_file_type(const char *name, int *typep)
{
@@ -366,4 +349,4 @@ nni_plat_file_unlock(nni_plat_flock *lk)
lk->h = INVALID_HANDLE_VALUE;
}
-#endif // NNG_PLATFORM_WINDOWS \ No newline at end of file
+#endif // NNG_PLATFORM_WINDOWS